// 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;
}