private MapReduceSpecification addWorkflowMapReduce(MapReduce mapReduce) {
MapReduceSpecification mapReduceSpec = new DefaultMapReduceSpecification(mapReduce);
// Rename the MapReduce job based on the step in the workflow.
final String mapReduceName = String.format("%s_%s", name, mapReduceSpec.getName());
mapReduceSpec = new ForwardingMapReduceSpecification(mapReduceSpec) {
@Override
public String getName() {
return mapReduceName;
}
};