docs: protected void registerDefaultConverters(ConversionService<?> conversionService) {
          conversionService.addConverter(
              CharSequence.class,
              MediaType.class, (object, targetType, context) -> {
                      if (StringUtils.isEmpty(object)) {
                          return Optional.empty();
                      } else {
                          final String str = object.toString();
                          try {
                              return Optional.of(new MediaType(str));
                          } catch (IllegalArgumentException e) {
                              context.reject(e);
                              return Optional.empty();
                          }
                      }
                  });
  
      }