private void removeSbbEntityWithCurrentClassLoader ( final SbbEntity sbbEntity ) { // remove entity sbbEntity . remove ( ) ; // remove from tx data final TransactionContext txContext = sleeContainer . getTransactionManager ( ) . getTransactionContext ( ) ; final SbbEntityID sbbEntityID = sbbEntity . getSbbEntityId ( ) ; txContext . getData ( ) . remove ( sbbEntityID ) ; // if sbb entity is root add a tx action to ensure lock is removed if ( sbbEntityID . isRootSbbEntity ( ) ) { TransactionalAction txAction = new TransactionalAction ( ) { @ Override public void execute ( ) { lockFacility . remove ( sbbEntityID ) ; } } ; txContext . getAfterCommitActions ( ) . add ( txAction ) ; } }
Removes the specified sbb entity but without changing to sbb s class loader first .