code: private boolean isDownloadPDF(Map<String, String> map) {
          return StringUtils.hasText(map.get(RequestElements.REQ_PARAM_ENTITY_SELECTOR))
                  && map.get(RequestElements.REQ_PARAM_ENTITY_SELECTOR).equalsIgnoreCase(ContentTypes.PDF.name());
      }
docs: Method returns true if this request expects PDF as response
  @param map
  @return