java.util.Set<Integer> out_tasks = new HashSet<Integer>();
if(componentCrouping!=null)
{
for (Entry<String, MkGrouper> ee : componentCrouping.entrySet()) {
MkGrouper g = ee.getValue();
if (GrouperType.direct.equals(g.gettype())) {
throw new IllegalArgumentException("Cannot do regular emit to direct stream");
}
List<Integer> tasks = componentTasks.get(ee.getKey());
List<Integer> indices = g.grouper(tuple);
for (Integer i : indices) {
Integer outtask=tasks.get(i);
if(outtask!=null)
{
out_tasks.add(outtask);