int lSessionTimeout = header.getTimeout(JWebSocketCommonConstants.DEFAULT_TIMEOUT);
if (lSessionTimeout > 0) {
ctx.getChannel().getConfig().setConnectTimeoutMillis(lSessionTimeout);
}
// create connector
WebSocketConnector theConnector = new NettyConnector(engine, this);
theConnector.setHeader(header);
engine.getConnectors().put(theConnector.getId(), theConnector);
theConnector.startConnector();
// allow descendant classes to handle connector started event
engine.connectorStarted(theConnector);
return theConnector;
}