public ChannelPipeline getPipeline() throws Exception {
final ChannelPipeline pipeline = Channels.pipeline();
//pipeline.addLast("logger", new LoggingHandler(InternalLogLevel.INFO));
pipeline.addLast("xmlFramer", new XMLFrameDecoder());
pipeline.addLast("xmlDecoder", new XMLElementDecoder());
pipeline.addLast("xmppDecoder", new XEP0114Decoder(xmppHost, xmppSecret));
pipeline.addLast("executor", executionHandler);
pipeline.addLast("xmppHandler", new XMPPStreamHandler(component));
return pipeline;
}