List<ConnectHandlerResultHandler> resultHandlers = chain.getHandlers(ConnectHandlerResultHandler.class);
ProtocolSession session = (ProtocolSession) attributes.get(ctx.getChannel());
session.getLogger().info("Connection established from " + session.getRemoteHost() + " (" + session.getRemoteIPAddress()+ ")");
if (connectHandlers != null) {
for (int i = 0; i < connectHandlers.size(); i++) {
ConnectHandler cHandler = connectHandlers.get(i);
long start = System.currentTimeMillis();
boolean disconnect = connectHandlers.get(i).onConnect(session);
long executionTime = System.currentTimeMillis() - start;