public static void createDatabasePrivilegeTemplate(
     DatabasePrivilegeTemplateInfo info, DatabasePrivilegeTemplate entity) {
   if (info == null || entity == null) {
     return;
   }
   entity.setName(info.getName());
   DatabasePrivilegeSet set = new MySQLPrivilegeSet();
   createDatabasePrivilegeSet(info.getPrivileges(), set);
   entity.setPrivileges(info.getPrivileges() == null ? null : set);
 }