String modifier = ""; if (StoreEnvironmentProducerOperations.class.isAssignableFrom(producerOrConsumerClass)){ if (getSimEnvironmentImpl() != null) modifier = "Environment"; else modifier = "Store"; }
    private Method getOperationsMethod(Class producerOrConsumerClass) {        String className = producerOrConsumerClass.getSimpleName();        String producerOrConsumerType = className.substring(0, className.lastIndexOf("Operations"));        String modifier = "";        if (StoreEnvironmentProducerOperations.class.isAssignableFrom(producerOrConsumerClass)){            if (getSimEnvironmentImpl() != null)                modifier = "Environment";            else                modifier = "Store";        }        myName = 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;    }