private Map<String, List<String>> addHeaders(Map<String, String> customHeaders) {
    HashMap<String, String> newHeaders = new HashMap<>();
    if (customHeaders != null)
      newHeaders.putAll(customHeaders);

    addBasicAuthHeaders(newHeaders);
    addRequestedByHeaders(newHeaders);
    return modifyHeaders(newHeaders);
  }
Provider of an input stream for a request to the Remote Ambari server.
ambari-server/src/main/java/org/apache/ambari/server/view/RemoteAmbariStreamProvider.java