code: private <T> HttpResponseHandler<T> getNonNullResponseHandler(
              HttpResponseHandler<T> responseHandler) {
          if (responseHandler != null) {
              return responseHandler;
          } else {
              // Return a Dummy, No-Op handler
              return new HttpResponseHandler<T>() {
  
                  @Override
                  public T handle(HttpResponse response) throws Exception {
                      return null;
                  }
  
                  @Override
                  public boolean needsConnectionLeftOpen() {
                      return false;
                  }
              };
          }
      }
docs: Ensures the response handler is not null. If it is this method returns a dummy response
  handler.
  
  @return Either original response handler or dummy response handler.