HttpsServer secureHttpServer = null;
if (secureBindAddress != null) {
secureHttpServer = HttpsServer.create(secureBindAddress, backlog, configuration);
final SSLContext context = securityRealm.getSSLContext();
if (context != null) {
secureHttpServer.setHttpsConfigurator(new HttpsConfigurator(context) {
@Override
public void configure(HttpsParameters params) {
SSLParameters sslparams = context.getDefaultSSLParameters();