instance = cFactory.applyAttributes(instance,
ImmutableMap.of("compositeStrategy", "authorization", "queryString", "(location.root=authorization/*)"));
registerServiceAtLocation(instance, "authorization-root", "root", AuthorizationDomain.class, Domain.class);
context.putBean("authorizer", instance);
OpenEngSBShiroAuthenticator openEngSBShiroAuthenticator = new OpenEngSBShiroAuthenticator();
openEngSBShiroAuthenticator.setAuthenticator(authConnector);
DefaultWebSecurityManager webSecurityManager = new DefaultWebSecurityManager();
webSecurityManager.setAuthenticator(openEngSBShiroAuthenticator);
context.putBean("webSecurityManager", webSecurityManager);
}