private static void startSession(Session session) {
session.setPacketDecoder(decoder);
session.setPacketEncoder(encoder);
session.setSessionHandler(handler);
if (sslc != null) {
SSLFilter filter = new SSLFilter(sslc);
filter.setClientMode(false);
session.addSessionFilter(filter);
}
session.start();
}