// add SSL handler
if (server.getConfiguration().isUseSsl()) {
SslConfiguration sslConfig = server.getConfiguration().getSslConfiguration();
if (sslConfig == null) throw new IllegalStateException("sslConfiguration must be set");
SslContextFactory factory = new SslContextFactory(sslConfig);
SSLEngine sslEngine = factory.newSslEngine();
sslEngine.setUseClientMode(false);
channel.getPipeline().addLast(SmppChannelConstants.PIPELINE_SESSION_SSL_NAME, new SslHandler(sslEngine));
}
// add a new instance of a thread renamer