docs: public static <T> T unmarshal(InputStream is, ObjectMapper mapper, Map<String, String> parameters) {
      InputStream wrapped = parameters != null && !parameters.isEmpty() ? new ReplaceValueStream(parameters).createInputStream(is) : is;
      try (BufferedInputStream bis = new BufferedInputStream(wrapped)) {
        bis.mark(-1);
        int intch;
        do {
          intch = bis.read();
        } while (intch > -1 && Character.isWhitespace(intch));
        bis.reset();
  
        if (intch != '{') {
          mapper = YAML_MAPPER;
        }
        return mapper.readerFor(KubernetesResource.class).readValue(bis);
      } catch (IOException e) {
        throw KubernetesClientException.launderThrowable(e);
      }
    }