String webappUrl = ServletHelper.getWebappURI(request);
AccessController accessController = acResolver.resolveAccessController(webappUrl);
if (accessController instanceof DefaultAccessController) {
DefaultAccessController defaultAccessController =
(DefaultAccessController) accessController;
accreditableManager = defaultAccessController.getAccreditableManager();
Authorizer[] authorizers = defaultAccessController.getAuthorizers();
for (int i = 0; i < authorizers.length; i++) {
if (authorizers[i] instanceof PolicyAuthorizer) {
PolicyAuthorizer policyAuthorizer = (PolicyAuthorizer) authorizers[i];
policyManager = policyAuthorizer.getPolicyManager();
}