public static boolean isS3Prefix(RestRequest restRequest) {
    String path;
    try {
      path = restRequest.getPath();
    } catch (IllegalArgumentException e) {
      logger.error("Invalid URI path for request " + restRequest);
      return false;
    }
    return path.startsWith(S3_PATH) || path.startsWith(Operations.S3);
  }
Determines if the request path is a S3 prefix request path.
@param restRequest rest request
@return {@code true} if the request path is a S3 prefix request path.
ambry-api/src/main/java/com/github/ambry/rest/RestUtils.java