code: public List<Lot> getLotList() {
          ClientResource resource = new ClientResource(Route.ALL_LOT.url());
  
          try {
              Representation repr = resource.get();
              return mapper.readValue(repr.getText(), new TypeReference<List<Lot>>(){});
          } catch (IOException ex) {
              LEX4JLogger.log(Level.WARNING, "Could not retrieve lot list correctly!");
              return null;
          }
      }
docs: Retrieve a list of lots/files.
  Note that this method will only set the {@link Lot#getId()} and {@link Lot#getName()} properties
  correctly because of API limitations.
  
  @return List of lots/files