return protocolChains.offer(pc);
}
};
controller.setProtocolChainInstanceHandler(instanceHandler);
Pipeline pipeline = new DefaultPipeline();
if(getServer().getThreadPool() instanceof BoundedThreadPool)
pipeline.setMaxThreads(((BoundedThreadPool)getServer().getThreadPool()).getMaxThreads());
else if (getServer().getThreadPool() instanceof QueuedThreadPool)
pipeline.setMaxThreads(((QueuedThreadPool)getServer().getThreadPool()).getMaxThreads());
controller.setPipeline(pipeline);
}