Pipeline<ChannelEvent> pipeline;
try {
pipeline = getPipelineFactory().getPipeline();
} catch (Exception e) {
throw new PipelineException("Failed to initialize a pipeline.", e);
}
pipeline.addFirst("connector", new Connector(remoteAddress, localAddress, futureQueue));
getFactory().newChannel(pipeline);