if (mode == Mode.PARTIAL1 || mode == Mode.COMPLETE) {
aggregateMethod = iterateMethod;
} else {
aggregateMethod = mergeMethod;
}
conversionHelper = new ConversionHelper(aggregateMethod, parameters);
// Output: get the evaluate method
Method evaluateMethod = null;
if (mode == Mode.PARTIAL1 || mode == Mode.PARTIAL2) {
evaluateMethod = terminatePartialMethod;