if (getHost() != null)
{
selectorHandler.setInet(InetAddress.getByName(getHost()));
}
controller.setSelectorHandler(selectorHandler);
selectorHandler.setSelectionKeyHandler(new DefaultSelectionKeyHandler());
DefaultProtocolChainInstanceHandler instanceHandler
= new DefaultProtocolChainInstanceHandler()
{