container/profiles/src/main/java/org/mobicents/slee/container/profile/AbstractProfileMBeanImpl.java
protected void throwableOnManagementMethodInvocation(Throwable t) throws ProfileImplementationException, InvalidStateException, ManagementException {
        if (t instanceof ProfileImplementationException) {
            throw (ProfileImplementationException) t;
        } else if (t instanceof InvalidStateException) {
            throw (InvalidStateException) t;
        } else if (t instanceof ReadOnlyProfileException) {
            throw new InvalidStateException(t.getMessage());
        } else if (t instanceof ManagementException) {
            throw (ManagementException) t;
        } else if (t instanceof RuntimeException) {
            try {
                getProfileObject().invalidateObject();
                sleeContainer.getTransactionManager().setRollbackOnly();
            } catch (Throwable e) {
                throw new ManagementException(e.getMessage(), e);
            }
            throw new ProfileImplementationException(t);
        } else {
            // checked exception
            throw new ProfileImplementationException(t);
        }
    }
protected void throwableOnManagementMethodInvocation(Throwable t) throws ProfileImplementationException, InvalidStateException, ManagementException {
        if (t instanceof ProfileImplementationException) {
            throw (ProfileImplementationException) t;
        } else if (t instanceof InvalidStateException) {
            throw (InvalidStateException) t;
        } else if (t instanceof ReadOnlyProfileException) {
            throw new InvalidStateException(t.getMessage());
        } else if (t instanceof ManagementException) {
            throw (ManagementException) t;
        } else if (t instanceof RuntimeException) {
            try {
                getProfileObject().invalidateObject();
                sleeContainer.getTransactionManager().setRollbackOnly();
            } catch (Throwable e) {
                throw new ManagementException(e.getMessage(), e);
            }
            throw new ProfileImplementationException(t);
        } else {
            // checked exception
            throw new ProfileImplementationException(t);
        }
    }
Handles a {@link Throwable}, which was the result of a management method invocation

@param t
@throws ProfileImplementationException
@throws InvalidStateException
@throws ManagementException