code: public static LineageEventBuilder fromEvent(GobblinTrackingEvent event) {
      Map<String, String> metadata = event.getMetadata();
      LineageEventBuilder lineageEvent = new LineageEventBuilder(event.getName());
  
      metadata.forEach((key, value) -> {
        switch (key) {
          case SOURCE:
            lineageEvent.setSource(Descriptor.fromJson(value));
            break;
          case DESTINATION:
            lineageEvent.setDestination(Descriptor.fromJson(value));
            break;
          default:
            lineageEvent.addMetadata(key, value);
            break;
        }
      });
  
      return lineageEvent;
    }
docs: Create a {@link LineageEventBuilder} from a {@link GobblinEventBuilder}. An inverse function
  to {@link LineageEventBuilder#build()}