public static Multimap<String, QueueName> configureQueue(Program program, FlowSpecification flowSpec,
StreamAdmin streamAdmin, QueueAdmin queueAdmin) {
// Generate all queues specifications
Id.Application appId = Id.Application.from(program.getAccountId(), program.getApplicationId());
Table<QueueSpecificationGenerator.Node, String, Set<QueueSpecification>> queueSpecs
= new SimpleQueueSpecificationGenerator(appId).create(flowSpec);
// For each queue in the flow, gather a map of consumer groupId to number of instances
Table<QueueName, Long, Integer> queueConfigs = HashBasedTable.create();
// For storing result from flowletId to queue.