Long task = shellMsg.getTask();
List<Object> tuple = shellMsg.getTuple();
Object messageId = shellMsg.getId();
if (task == 0) {
List<Integer> outtasks = _collector.emit(stream, tuple, messageId);
if (shellMsg.areTaskIdsNeeded()) {
_process.writeTaskIds(outtasks);
}
} else {
_collector.emitDirect((int) task.longValue(), stream, tuple, messageId);
}