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

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