}
ERXRoute.Method method = null;
// Search annotations for @PUT, @GET, etc.
for (Annotation annotation : routeMethod.getAnnotations()) {
HttpMethod httpMethod = annotation.annotationType().getAnnotation(HttpMethod.class);
if (httpMethod != null) {
if (method == null) {
method = httpMethod.value();
}
else {
throw new IllegalArgumentException(routeControllerClass.getSimpleName() + "." + routeMethod.getName() + " is annotated as more than one http method.");
}
}