public ChannelPipeline getPipeline() throws Exception {
// Create a default pipeline implementation.
ChannelPipeline pipeline = pipeline();
pipeline.addLast("timeout", new ReadTimeoutHandler(timer, 30));
pipeline.addLast("decoder", new FlashPolicyServerDecoder());
pipeline.addLast("handler", getFlashPolicyServerHandler());
return pipeline;
}