Properties properties,
ClassLoader classLoader) throws Exception {
SecurityHandler securityHandler = null;
if (configurationFactory != null) {
BuiltInAuthMethod builtInAuthMethod = BuiltInAuthMethod.getValueOf(authMethod);
JettySecurityHandlerFactory factory = new JettySecurityHandlerFactory(builtInAuthMethod, null, null, realmName, configurationFactory);
//TODO use actual default subject here.
securityHandler = factory.buildSecurityHandler(contextID, null, null, false);
}
ServletHandler servletHandler = new EJBServletHandler(webServiceContainer);
EJBWebServiceContext webServiceContext = new EJBWebServiceContext(contextPath, securityHandler, servletHandler, classLoader);
webServiceContext.setVirtualHosts(virtualHosts);
addContext(webServiceContext);