code: private InputStream parseEntity(DataSource ds) {
          try {
              return ds.getInputStream();
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
      }
docs: Parses the entity.
  
  @param ds
  the ds
  @return the input stream