definitionMethod = producerOrConsumerClass.getMethod(methodName, null);
definitionMethod = producerOrConsumerClass.getMethod(methodName, new Class[0]);
    private Method getOperationsMethod(Class producerOrConsumerClass) {        String className = producerOrConsumerClass.getSimpleName();        String producerOrConsumerType = className.substring(0, className.lastIndexOf("Operations"));        myName = generateUserFriendlyResource(producerOrConsumerType) + " Flowrate";        String methodName = "get" + producerOrConsumerType + "Definition";        Method definitionMethod = null;        try{            definitionMethod = producerOrConsumerClass.getMethod(methodName, null);        }        catch (NoSuchMethodException e){            myLogger.error("This shouldn't of happened, problem getting method");            e.printStackTrace();        }        return definitionMethod;    }