/**
  * createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. Such a
  * DO is used to insert a new database entry that is largely similar to an existing entry.
  *
  * @param orig The original DO to copy.
  * @exception com.lutris.appserver.server.sql.ObjectIdException If an object id can't be allocated
  *     for this object.
  * @exception DatabaseManagerException If a connection to the database cannot be established, etc.
  */
 public static PersonalProfileDO createCopy(PersonalProfileDO orig)
     throws DatabaseManagerException, ObjectIdException {
   PersonalProfileDO ret = new PersonalProfileDO();
   if (null != orig.data) {
     ret.data = (PersonalProfileDataStruct) orig.data.duplicate();
   }
   return ret;
 }
 /**
  * createCopy() Creates a DO that has no ObjectId but has a copy of an existing DO's data. Such a
  * DO is used to insert a new database entry that is largely similar to an existing entry.
  *
  * @param data The data struct to copy values from.
  * @exception com.lutris.appserver.server.sql.ObjectIdException If an object id can't be allocated
  *     for this object.
  * @exception DatabaseManagerException If a connection to the database cannot be established, etc.
  */
 public static PersonalProfileDO createCopy(PersonalProfileDataStruct data)
     throws DatabaseManagerException, ObjectIdException {
   PersonalProfileDO ret = new PersonalProfileDO();
   ret.data = (PersonalProfileDataStruct) data.duplicate();
   return ret;
 }