container/activities/src/main/java/org/mobicents/slee/runtime/activity/ActivityContextInterfaceImpl.java
public boolean isAttached(SbbLocalObject sbbLocalObject) throws NullPointerException,
			TransactionRequiredLocalException,
			TransactionRolledbackLocalException, SLEEException {
		
		if (sbbLocalObject == null) {
			throw new NullPointerException("null sbbLocalObject");
		}
		
		sleeContainer.getTransactionManager().mandateTransaction();
		
		if (sbbLocalObject instanceof org.mobicents.slee.container.sbb.SbbLocalObject) {
			org.mobicents.slee.container.sbb.SbbLocalObject sbbLocalObjectImpl = (org.mobicents.slee.container.sbb.SbbLocalObject) sbbLocalObject;
			SbbEntity sbbEntity = sbbLocalObjectImpl.getSbbEntity();
			if (sbbEntity != null && !sbbEntity.isRemoved()) {				
				return sbbEntity.isAttached(activityContext.getActivityContextHandle());
			}
		}
		
		try {
			sleeContainer.getTransactionManager().setRollbackOnly();
		} catch (Exception e) {
			throw new SLEEException(e.getMessage(),e);
		}
		throw new TransactionRolledbackLocalException("the sbbLocalObject argument must represent a valid SBB entity");
	}
public boolean isAttached(SbbLocalObject sbbLocalObject) throws NullPointerException,
			TransactionRequiredLocalException,
			TransactionRolledbackLocalException, SLEEException {
		
		if (sbbLocalObject == null) {
			throw new NullPointerException("null sbbLocalObject");
		}
		
		sleeContainer.getTransactionManager().mandateTransaction();
		
		if (sbbLocalObject instanceof org.mobicents.slee.container.sbb.SbbLocalObject) {
			org.mobicents.slee.container.sbb.SbbLocalObject sbbLocalObjectImpl = (org.mobicents.slee.container.sbb.SbbLocalObject) sbbLocalObject;
			SbbEntity sbbEntity = sbbLocalObjectImpl.getSbbEntity();
			if (sbbEntity != null && !sbbEntity.isRemoved()) {				
				return sbbEntity.isAttached(activityContext.getActivityContextHandle());
			}
		}
		
		try {
			sleeContainer.getTransactionManager().setRollbackOnly();
		} catch (Exception e) {
			throw new SLEEException(e.getMessage(),e);
		}
		throw new TransactionRolledbackLocalException("the sbbLocalObject argument must represent a valid SBB entity");
	}
/*
(non-Javadoc)
@see javax.slee.ActivityContextInterface#isAttached(javax.slee.SbbLocalObject)