public synchronized Optional<MixedFormatConnectorMetadata> optionalGet() {
      return Optional.ofNullable(metadata);
    }
This is used to guarantee one transaction to one {@link MixedFormatConnectorMetadata}
amoro-format-mixed/amoro-mixed-trino/src/main/java/org/apache/amoro/trino/MixedFormatTransactionManager.java