default Map<String, String> hmsEnvContext(String metadataLocation) {
    return metadataLocation == null ? ImmutableMap.of() :
      ImmutableMap.of(
        NO_LOCK_EXPECTED_KEY,
        BaseMetastoreTableOperations.METADATA_LOCATION_PROP,
        NO_LOCK_EXPECTED_VALUE,
        metadataLocation);
  }
All the HMS operations like table,view,materialized_view should implement this.
iceberg/iceberg-catalog/src/main/java/org/apache/iceberg/hive/HiveOperationsBase.java