sleepForZK(report);
int oldInstances = report.getResources().get(flowletName).size();
Program program = Programs.create(location.append(flowName));
Multimap<String, QueueName> consumerQueues = FlowUtils.configureQueue(program, program.getSpecification(),
queueAdmin);
DistributedFlowletInstanceUpdater instanceUpdater = new DistributedFlowletInstanceUpdater(
program, controller, queueAdmin, consumerQueues);
FlowTwillProgramController flowController = new FlowTwillProgramController(program.getName(), controller,
instanceUpdater);
Map<String, String> instanceOptions = Maps.newHashMap();
instanceOptions.put("flowlet", flowletName);