code: public static Optional<LineageInfo> getLineageInfo(@Nullable SharedResourcesBroker<GobblinScopeTypes> broker) {
      if (broker == null) {
        log.warn("Null broker. Will not track data lineage");
        return Optional.absent();
      }
  
      try {
        LineageInfo lineageInfo = broker.getSharedResource(new LineageInfoFactory(), EmptyKey.INSTANCE);
        return Optional.of(lineageInfo);
      } catch (NotConfiguredException e) {
        log.warn("Fail to get LineageInfo instance from broker. Will not track data lineage", e);
        return Optional.absent();
      }
    }
docs: Try to get a {@link LineageInfo} instance from the given {@link SharedResourcesBroker}