private List<String> getFilteredDatabaseList(List<HivePrivilegeObject> hivePrivilegeObjects) {
    List<String> ret = new ArrayList<>();
    for(HivePrivilegeObject hivePrivilegeObject: hivePrivilegeObjects) {
      String dbName = hivePrivilegeObject.getDbname();
      ret.add(dbName);
    }
    return ret;
  }
HiveMetaStoreAuthorizer :  Do authorization checks on MetaStore Events in MetaStorePreEventListener
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/HiveMetaStoreAuthorizer.java