}
if (httpsEnabled.booleanValue()) {
int httpsPort = Details.getIntProp(context, JettyConstants.HTTP_PORT, -1);
if (httpsPort == -1)
httpsPort = Details.getInt(context, ORG_OSGI_SERVICE_HTTP_PORT_SECURE, 443);
<BUG>defaultSettings.put(JettyConstants.HTTPS_PORT, new Integer(httpsPort));
</BUG>
String httpsHost = Details.getStringProp(context, JettyConstants.HTTPS_HOST, null);
if (httpsHost != null)
defaultSettings.put(JettyConstants.HTTPS_HOST, httpsHost);

}
int maxThreads = Details.getIntProp(context, JettyConstants.HTTP_MAXTHREADS, 200);
if (maxThreads != -1) {
defaultSettings.put(JettyConstants.HTTP_MAXTHREADS, Integer.valueOf(maxThreads));
}
if (httpsEnabled.booleanValue()) {
int httpsPort = Details.getIntProp(context, JettyConstants.HTTP_PORT, -1);
if (httpsPort == -1)
httpsPort = Details.getInt(context, ORG_OSGI_SERVICE_HTTP_PORT_SECURE, 443);
defaultSettings.put(JettyConstants.HTTPS_PORT, Integer.valueOf(httpsPort));
String httpsHost = Details.getStringProp(context, JettyConstants.HTTPS_HOST, null);
if (httpsHost != null)
defaultSettings.put(JettyConstants.HTTPS_HOST, httpsHost);
