public static RequestPath getRequestPath(RestRequest restRequest) {
    return (RequestPath) Objects.requireNonNull(restRequest.getArgs().get(InternalKeys.REQUEST_PATH),
        InternalKeys.REQUEST_PATH + " not set in " + restRequest);
  }
Extract the {@link RequestPath} object from {@link RestRequest} arguments.
@param restRequest the {@link RestRequest}.
@return the {@link RequestPath}
ambry-api/src/main/java/com/github/ambry/rest/RestUtils.java