default Future<Void> validateRequest(RestRequest restRequest) {
    FutureResult<Void> futureResult = new FutureResult<>();
    validateRequest(restRequest, futureResult::done);
    return futureResult;
  }
Similar to {@link #validateRequest(RestRequest, Callback)} but returns a {@link Future} instead of requiring
a callback.
@param restRequest {@link RestRequest} upon which validations has to be performed
@return a {@link Future} that is completed when the processing is done.
ambry-rest/src/main/java/com/github/ambry/rest/ServerSecurityService.java