String[] urlPatterns = wrapper.findMappings();
for (String urlPattern : urlPatterns) {
collection.addPattern(urlPattern);
}
for (String methodOmission : methodOmissions) {
collection.addMethodOmission(methodOmission);
}
constraint.addCollection(collection);
context.addConstraint(constraint);
}