code: public T getNext() throws IOException {
      try {
        return mapper.readValue(jsonParser, clazz);
      } catch (EOFException e) {
        return null;
      }
    }
docs: Get the next object from the trace.
  
  @return The next instance of the object. Or null if we reach the end of
  stream.
  @throws IOException