ejb3/src/main/java/org/jboss/as/ejb3/component/allowedmethods/AllowedMethodsInformation.java
protected void throwException(MethodType methodType, CurrentSynchronizationCallback.CallbackType callback) {
        throw EjbLogger.ROOT_LOGGER.cannotCallMethod(methodType.getLabel(), callback.name());
    }
protected void throwException(MethodType methodType, CurrentSynchronizationCallback.CallbackType callback) {
        throw EjbLogger.ROOT_LOGGER.cannotCallMethod(methodType.getLabel(), callback.name());
    }
protected void throwException ( MethodType methodType , CurrentSynchronizationCallback . CallbackType callback ) { throw EjbLogger . ROOT_LOGGER . cannotCallMethod ( methodType . getLabel ( ) , callback . name ( ) ) ; }
throw an exception when a method cannot be invoked

@param methodType the method
@param callback   the type of invocation that caused it to be disabled
throw an exception when a method cannot be invoked