public static void createDatabaseUserEntry(UserDatabaseEntryInfo info, UserDatabaseEntry entity) {
   if (info == null || entity == null) {
     return;
   }
   entity.setDatabaseName(info.getDatabaseName());
   DatabasePrivilegeSet privilegesEntity = new MySQLPrivilegeSet();
   createDatabasePrivilegeSet(info.getPrivileges(), privilegesEntity);
   entity.setPrivileges(privilegesEntity);
   entity.setRssInstanceName(info.getRssInstanceName());
   entity.setType(info.getType());
   entity.setUsername(info.getUsername());
 }
 public static void createDatabaseUserEntryInfo(
     UserDatabaseEntryInfo info, UserDatabaseEntry entity) {
   if (info == null || entity == null) {
     return;
   }
   info.setDatabaseName(entity.getDatabaseName());
   MySQLPrivilegeSetInfo privilegesInfo = new MySQLPrivilegeSetInfo();
   createDatabasePrivilegeSetInfo(privilegesInfo, entity.getPrivileges());
   info.setPrivileges(privilegesInfo);
   info.setRssInstanceName(entity.getRssInstanceName());
   info.setType(entity.getType());
   info.setUsername(entity.getUsername());
 }