code: private static List<MediaType> getResourceMethodProducibleTypes(final ExtendedUriInfo extendedUriInfo) {
          if (extendedUriInfo.getMatchedResourceMethod() != null
                  && !extendedUriInfo.getMatchedResourceMethod().getProducedTypes().isEmpty()) {
              return extendedUriInfo.getMatchedResourceMethod().getProducedTypes();
          }
          return Collections.singletonList(MediaType.WILDCARD_TYPE);
      }
docs: Return a list of producible media types of the last matched resource method.
  
  @param extendedUriInfo uri info to obtain resource method from.
  @return list of producible media types of the last matched resource method.