code: public static MediaType getMediaTypeByExtension(String extension) {
          final String input = EXTENSIONS.get(extension);
          if (input == null) {
              return null;
          }
          return MediaType.parse(input);
      }
docs: Gets a {@link MediaType} for the extension of a file or url.
  
  @param extension the extension, without the "."
  @return the parsed media type if known, {@literal null} otherwise.
  @since 0.8.1