return priorityAnnotation == null;
}
// added by esbena
public static int getPriority(Method method) {
Priority priorityAnnotation = method.getAnnotation(Priority.class);
final int priority;
if (priorityAnnotation == null) {
URLPattern patternAnnotation = method
.getAnnotation(URLPattern.class);
final String pattern;
if (patternAnnotation != null)
pattern = patternAnnotation.value();
else
pattern = method.getName();
priority = MyPatternMatcher.computeDefaultPriority(pattern);
} else
priority = priorityAnnotation.value();
return priority;
}