code: public static String[] getProduces(final Annotation[] annotations) {
          if (annotations != null && annotations.length > 0) {
              for (Annotation annotation : annotations) {
                  if (annotation instanceof Produces) {
                      return ((Produces) annotation).value();
                  }
              }
          }
  
          return null;
      }
docs: <p>getProduces.</p>
  
  @param annotations an array of {@link java.lang.annotation.Annotation} objects.
  @return an array of {@link java.lang.String} objects.