container/activities/src/main/java/org/mobicents/slee/runtime/facilities/nullactivity/NullActivityContextInterfaceFactoryImpl.java
public ActivityContextInterface getActivityContextInterface(
            NullActivity nullActivity) throws NullPointerException,
            TransactionRequiredLocalException, UnrecognizedActivityException,
            FactoryException {
     
    	if (nullActivity == null ) 
             throw new NullPointerException ("null NullActivity ! huh!!");
        
        if (! (nullActivity instanceof NullActivityImpl)) 
            throw new UnrecognizedActivityException ("unrecognized activity");
        
        NullActivityImpl nullActivityImpl = (NullActivityImpl) nullActivity;
        ActivityContextHandle ach = new NullActivityContextHandle(nullActivityImpl.getHandle());
        ActivityContext ac = sleeContainer.getActivityContextFactory().getActivityContext(ach);
        if (ac == null) {
        	throw new UnrecognizedActivityException(nullActivity);
        }
        return ac.getActivityContextInterface();
        
    }
public ActivityContextInterface getActivityContextInterface(
            NullActivity nullActivity) throws NullPointerException,
            TransactionRequiredLocalException, UnrecognizedActivityException,
            FactoryException {
     
    	if (nullActivity == null ) 
             throw new NullPointerException ("null NullActivity ! huh!!");
        
        if (! (nullActivity instanceof NullActivityImpl)) 
            throw new UnrecognizedActivityException ("unrecognized activity");
        
        NullActivityImpl nullActivityImpl = (NullActivityImpl) nullActivity;
        ActivityContextHandle ach = new NullActivityContextHandle(nullActivityImpl.getHandle());
        ActivityContext ac = sleeContainer.getActivityContextFactory().getActivityContext(ach);
        if (ac == null) {
        	throw new UnrecognizedActivityException(nullActivity);
        }
        return ac.getActivityContextInterface();
        
    }
public ActivityContextInterface getActivityContextInterface ( NullActivity nullActivity ) throws NullPointerException , TransactionRequiredLocalException , UnrecognizedActivityException , FactoryException { if ( nullActivity == null ) throw new NullPointerException ( "null NullActivity ! huh!!" ) ; if ( ! ( nullActivity instanceof NullActivityImpl ) ) throw new UnrecognizedActivityException ( "unrecognized activity" ) ; NullActivityImpl nullActivityImpl = ( NullActivityImpl ) nullActivity ; ActivityContextHandle ach = new NullActivityContextHandle ( nullActivityImpl . getHandle ( ) ) ; ActivityContext ac = sleeContainer . getActivityContextFactory ( ) . getActivityContext ( ach ) ; if ( ac == null ) { throw new UnrecognizedActivityException ( nullActivity ) ; } return ac . getActivityContextInterface ( ) ; }
/* (non-Javadoc)
@see javax.slee.nullactivity.NullActivityContextInterfaceFactory#getActivityContextInterface(javax.slee.nullactivity.NullActivity)
/ * ( non - Javadoc )