class DestructiveReplica {

  public boolean tableIsUnderCircusTrainControl() throws TException {
    try (CloseableMetaStoreClient client = replicaMetaStoreClientSupplier.get()) {
      if (!client.tableExists(databaseName, tableName)) {
        return true;
      }
      String sourceTableParameterValue = client
          .getTable(databaseName, tableName)
          .getParameters()
          .get(CircusTrainTableParameter.SOURCE_TABLE.parameterName());
      if (sourceTableParameterValue != null) {
        String qualifiedName = tableReplication.getSourceTable().getQualifiedName();
        return qualifiedName.equals(sourceTableParameterValue);
      }
    }
    return false;
  }

  public  DestructiveReplica(
      Supplier<CloseableMetaStoreClient> replicaMetaStoreClientSupplier,
      CleanupLocationManager cleanupLocationManager,
      TableReplication tableReplication);

}