container/remote/src/main/java/org/mobicents/slee/connector/local/SleeConnectionServiceImpl.java
public ExternalActivityHandle createActivityHandle() throws ResourceException {
		if(sleeContainer == null)
		{
			throw new ResourceException("Connection is in closed state");
		}
		if(sleeContainer.getSleeState()!=SleeState.RUNNING)
		{
			throw new ResourceException("Container is not in running state.");
		}
		
		return sleeContainer.getNullActivityFactory().createNullActivityHandle();
	}
public ExternalActivityHandle createActivityHandle() throws ResourceException {
		if(sleeContainer == null)
		{
			throw new ResourceException("Connection is in closed state");
		}
		if(sleeContainer.getSleeState()!=SleeState.RUNNING)
		{
			throw new ResourceException("Container is not in running state.");
		}
		
		return sleeContainer.getNullActivityFactory().createNullActivityHandle();
	}
public ExternalActivityHandle createActivityHandle ( ) throws ResourceException { if ( sleeContainer == null ) { throw new ResourceException ( "Connection is in closed state" ) ; } if ( sleeContainer . getSleeState ( ) != SleeState . RUNNING ) { throw new ResourceException ( "Container is not in running state." ) ; } return sleeContainer . getNullActivityFactory ( ) . createNullActivityHandle ( ) ; }
/* (non-Javadoc)
@see javax.slee.connection.SleeConnection#createActivityHandle()
/ * ( non - Javadoc )