public ChannelInstance getChannelInstance(Channel channel, boolean isPeekingToNextTransition) { final ExecutionStageLoop loop = getExecutionStageLoop(channel); if (loop == null) { return this.channelInstances.get(channel); } else { final ExecutionStageLoopContext loopContext = this.getOrCreateLoopContext(loop); return loopContext.getChannelInstance(channel, isPeekingToNextTransition); } }