@Override
  boolean shouldAccept(final NotificationEvent event) {
    if (catalogName == null || event.getCatName() == null || catalogName.equalsIgnoreCase(event.getCatName())) {
      return true;
    }
    return false;
  }
Utility function that constructs a notification filter to match a given catalog name.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/messaging/event/filters/CatalogFilter.java