}
private MapCombineCommand<KIn, VIn, KOut, VOut> buildMapCombineCommand(
String taskId, Mapper<KIn, VIn, KOut, VOut> m, Reducer<KOut, VOut> r,
Collection<KIn> keys, boolean reducePhaseDistributed, boolean emitCompositeIntermediateKeys){
ComponentRegistry registry = cache.getComponentRegistry();
CommandsFactory factory = registry.getComponent(CommandsFactory.class);
MapCombineCommand<KIn, VIn, KOut, VOut> c = factory.buildMapCombineCommand(taskId, m, r, keys);
c.setReducePhaseDistributed(reducePhaseDistributed);
c.setEmitCompositeIntermediateKeys(emitCompositeIntermediateKeys);
return c;
}