private Request createGetRequest(HttpHeaders headers, RequestBody body, UriInfo uriInfo, ResourceInstance resource) {
    applyDirectives(Request.Type.GET, body, uriInfo, resource);
    return new GetRequest(headers, body, uriInfo, resource);
  }
Create a GET request.  This will apply any eligible directives supplied in the URI.

@param headers  http headers
@param uriInfo  uri information
@param resource associated resource instance
@return new post request
ambari-server/src/main/java/org/apache/ambari/server/api/services/RequestFactory.java