code: @Deprecated
      public static Optional<SerializationFormat> fromMediaType(@Nullable String mediaType) {
          if (mediaType == null) {
              return Optional.empty();
          }
  
          try {
              return find(MediaType.parse(mediaType));
          } catch (IllegalArgumentException e) {
              // Malformed media type
              return Optional.empty();
          }
      }
docs: Finds the {@link SerializationFormat} which is accepted by the specified media range.
  
  @deprecated Use {@link #find(MediaType...)}.