code: public AtlasLineageInfo getLineageInfo(final String guid, final LineageDirection direction, final int depth) throws AtlasServiceException {
          MultivaluedMap<String, String> queryParams = new MultivaluedMapImpl();
          queryParams.add("direction", direction.toString());
          queryParams.add("depth", String.valueOf(depth));
  
          return callAPI(LINEAGE_INFO, AtlasLineageInfo.class, queryParams, guid);
      }
docs: /* Lineage Calls