// Creates QueueSpecification
Table<Node, String, Set<QueueSpecification>> queueSpecs = new SimpleQueueSpecificationGenerator().create(
flowSpec);
Flowlet flowlet = new InstantiatorFactory(false).get(TypeToken.of(flowletClass)).create();
TypeToken<? extends Flowlet> flowletType = TypeToken.of(flowletClass);
// Set the context classloader to the Tigon classloader. It is needed for the DatumWriterFactory be able
// to load Tigon classes
Thread.currentThread().setContextClassLoader(FlowletProgramRunner.class.getClassLoader());