}
for (ResourceMethod resourceMethod : rootResource.getResourceMethods(true)) {
if ("/*".equals(resourceMethod.getServletPattern())) {
if (!allowWildcardServlet) {
result.addError(resourceMethod, "This JAX-RS resource method is designed to catch all requests (including requests to " +
"Enunciate-generated documentation and other static files). If this is what you want, then please set 'disableWildcardServletError' to 'true'" +
"in the Enunciate config for the Jersey module. Otherwise, enable the rest subcontext or adjust the @Path annotation to be more specific.");
}
else {
result.addWarning(resourceMethod, "JAX-RS resource method is designed to catch all requests.");