private ControllableSubscription getSubscription ( String id ) throws SIMPControllableNotFoundException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getSubscription" , id ) ; //id is assumed to be SIBUuid12 SIBUuid12 uuid = new SIBUuid12 ( id ) ; SubscriptionTypeFilter filter = new SubscriptionTypeFilter ( ) ; filter . LOCAL = Boolean . TRUE ; ControllableSubscription sub = getSubscriptionIndex ( ) . findByUuid ( uuid , filter ) ; // If the sub is null, throw an exception if ( sub == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getLocalSubscriptionControlByID" , "SIMPControllableNotFoundException" ) ; throw new SIMPControllableNotFoundException ( nls . getFormattedMessage ( "SUBSCRIPTION_NOT_FOUND_ERROR_CWSIP0271" , new Object [ ] { id } , null ) ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getSubscription" , sub ) ; return sub ; }
Gets and returns the subscription based on the id .