// Unbind UserTransaction context if it is not a BMT bean
// as specified in chapter 16.12 of EJB 3 spec.
if (easyBeansFactory.getBeanInfo().getTransactionManagementType() == CONTAINER) {
logger.debug("Bean is container managed so remove availability of java:comp/UserTransaction object");
try {
compCtx.unbind("UserTransaction");
} catch (NamingException e) {
throwException(cne, new IllegalStateException("Cannot remove java:comp/UserTransaction object", e));
}
}