Arguments arguments = programOpts.getArguments();
RunId runId = arguments.hasOption(ProgramOptionConstants.RUN_ID)
? RunIds.fromString(arguments.getOption(ProgramOptionConstants.RUN_ID))
: RunIds.generate();
ServiceSpecification serviceSpec = appSpec.getServices().get(processorName);
final RuntimeSpecification runtimeSpec = serviceSpec.getRunnables().get(runnableName);
String className = runtimeSpec.getRunnableSpecification().getClassName();
LOG.info("Getting class : {}", program.getMainClass().getName());
Class<?> clz = Class.forName(className, true, program.getClassLoader());
Preconditions.checkArgument(TwillRunnable.class.isAssignableFrom(clz), "%s is not a TwillRunnable.", clz);