PatternInfo defaultInfo = null;
SecurityConstraint[] constraints = metaData.findConstraints();
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];