} else {
// Process the permission for the resources x roles
for (int j = 0; j < resources.length; j++) {
SecurityCollection wrc = resources[j];
String[] httpMethods = wrc.findMethods();
String[] urlPatterns = wrc.findPatterns();
for (int n = 0; n < urlPatterns.length; n++) {
String url = urlPatterns[n];
// Get the qualified url pattern
PatternInfo info = (PatternInfo) patternMap.get(url);
HashSet<String> mappedRoles = new HashSet<String>();