for (int i = 0; i < constraints.length; i++) {
SecurityConstraint sc = constraints[i];
SecurityCollection[] resources = sc.findCollections();
for (int j = 0; j < resources.length; j++) {
SecurityCollection wrc = resources[j];
String[] urlPatterns = wrc.findPatterns();
for (int n = 0; n < urlPatterns.length; n++) {
String url = urlPatterns[n];
int type = getPatternType(url);
PatternInfo info = (PatternInfo) patternMap.get(url);
if (info == null) {