}
else {
jetty = new Server(address);
}
if (config.isSSLEnabled()) {
SSLService ssl = services.getService("SSLService");
String keystoreFileName = config.getGatewaySecurityDir() + File.separatorChar + "keystores" + File.separatorChar + "gateway.jks";
Connector connector = (Connector) ssl.buildSSlConnector(keystoreFileName);
connector.setHost(address.getHostName());
connector.setPort(address.getPort());
jetty.addConnector(connector);
}
jetty.setHandler( contexts );