code: public <T extends IEntity> InputStream download(T entity) throws FMSException {
  
          IntuitMessage intuitMessage = prepareDownload(entity);
  
          //execute interceptors
          executeInterceptors(intuitMessage);
  
          String response = intuitMessage.getResponseElements().getDecompressedData();
          if (response != null) {
              try {
                  URL url = new URL(response);
                  return url.openStream();
              } catch (Exception e) {
                  throw new FMSException("Exception while downloading the input file from URL.", e);
              }
          }
  
          return null;
      }
docs: Method to find the record for the given id for the corresponding entity
  
  @param entity
  @return returns the entity
  @throws FMSException