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);
 }
 public static void createDatabasePrivilegeTemplateInfo(
     DatabasePrivilegeTemplateInfo info, DatabasePrivilegeTemplate entity) {
   if (info == null || entity == null) {
     return;
   }
   info.setName(entity.getName());
   DatabasePrivilegeSetInfo set = new MySQLPrivilegeSetInfo();
   DatabasePrivilegeSet dto = new MySQLPrivilegeSet();
   createDatabasePrivilegeSet(dto, entity.getEntry());
   createDatabasePrivilegeSetInfo(set, dto);
   info.setPrivileges(entity.getEntry() == null ? null : set);
 }