@Override
protected ProgramController launch(Program program, ProgramOptions options,
File hConfFile, File cConfFile, ApplicationLauncher launcher) {
// Extract and verify parameters
FlowSpecification flowSpec = program.getSpecification();
ProgramType processorType = program.getType();
Preconditions.checkNotNull(processorType, "Missing processor type.");
Preconditions.checkArgument(processorType == ProgramType.FLOW, "Only FLOW process type is supported.");
try {
Preconditions.checkNotNull(flowSpec, "Missing FlowSpecification for %s", program.getName());