final RoleDecisionManager roleDecision;
if ( roleDecisionManager != null ) {
roleDecision = roleDecisionManager;
} else {
roleDecision = new DefaultRoleDecisionManager();
}
if ( resourceDecisionManagers == null || resourceDecisionManagers.isEmpty() ) {
URLResourceManager urlResourceManager = null;
if ( resourceManager instanceof URLResourceManager ) {