container/profiles/src/main/java/org/mobicents/slee/container/profile/AbstractProfileMBeanImpl.java
protected boolean beforeManagementMethodInvocation() throws ManagementException {

        if (logger.isDebugEnabled()) {
            logger.debug("beforeManagementMethodInvocation() on profile with name " + profileName + " of table " + profileTable.getProfileTableName());
        }

        jndiManagement = sleeContainer.getJndiManagement();
        jndiManagement.pushJndiContext(profileTable.getProfileSpecificationComponent());

        return beforeNonSetCmpField();
    }
protected boolean beforeManagementMethodInvocation() throws ManagementException {

        if (logger.isDebugEnabled()) {
            logger.debug("beforeManagementMethodInvocation() on profile with name " + profileName + " of table " + profileTable.getProfileTableName());
        }

        jndiManagement = sleeContainer.getJndiManagement();
        jndiManagement.pushJndiContext(profileTable.getProfileSpecificationComponent());

        return beforeNonSetCmpField();
    }
Logic to execute before invoking a management method on the mbean

@return true if the method initiated or resumed a transaction
@throws ManagementException