throw new IllegalArgumentException("Unknown annotation: " + annotation.getName().toString());
}
}
protected static RestAnnotation getRESTAnnotation(final Annotation annotation) throws RestAnnotationException {
final RestAnnotationName an = RestAnnotationName.valueOf(annotation.getName());
final AbstractRestAnnotation restAnnotation;
switch(an) {
case GET:
restAnnotation = new GetMethodAnnotation();