Configuration busCfg = bus.getConfiguration();
String id = "http-listener." + p;
ConfigurationBuilder cb = ConfigurationBuilderFactory.getBuilder(null);
Configuration cfg = cb.getConfiguration(HTTP_LISTENER_CONFIGURATION_URI, id, busCfg);
if (null == cfg) {
cfg = cb.buildConfiguration(HTTP_LISTENER_CONFIGURATION_URI, id, busCfg);
}
return cfg;
}
static synchronized JettyHTTPServerEngine getForPort(Bus bus, String protocol, int p) {