if(that instanceof JobStep) {
JobStep jobStep=(JobStep) that;
this.runJob(jar, jobStep.getStepArgs(local,flowArgs));
} else if(that instanceof AssignmentStep) {
AssignmentStep ass=(AssignmentStep) that;
local=ass.process(local, flowArgs);
} else {
throw new RuntimeException("Could not process step of type "+that.getClass());
}
}
};