private void appendUriPath(URIBuilder uriBuilder, String path) {
    if (StringUtils.isNotEmpty(uriBuilder.getPath())) {
      uriBuilder.setPath(uriBuilder.getPath() + path);
    } else {
      uriBuilder.setPath(path);
    }
  }
Generates the log file tail URI, using the LogSearch server's
query parameters.

@param baseURI the base URI for this request, typically the URI to the
               Ambari Integration searchEngine component

@param componentName the component name
@param hostName the host name

@return
ambari-server/src/main/java/org/apache/ambari/server/controller/logging/LoggingRequestHelperImpl.java