FlowElement processor = mInputQueues.get(nextQueue);
if (null == processor) {
LOG.error("No FlowElement for input queue " + nextQueue);
} else {
try {
processor.takeEvent((EventWrapper) nextAction);
} catch (IOException ioe) {
// TODO(aaron): Encountering an exception mid-flow should cancel the flow.
LOG.error("Flow element encountered IOException: " + ioe);
} catch (InterruptedException ie) {
LOG.error("Flow element encountered InterruptedException: " + ie);