private void setupMIMEs() {
   producesAnnotation =
       Utils.findMethodAnnotation(declaringClass, method, Utils.getProducesClass());
   consumesAnnotation =
       Utils.findMethodAnnotation(declaringClass, method, Utils.getConsumesClass());
   if (producesAnnotation == null) {
     producesAnnotation = resource.getProducesAnnotation();
   }
   if (consumesAnnotation == null) {
     consumesAnnotation = resource.getConsumesAnnotation();
   }
 }
 public AnnotationDesc getConsumesAnnotation() {
   if (consumesAnnotation != null) return consumesAnnotation;
   if (resource.isSubResource()) return resource.getConsumesAnnotation();
   return null;
 }