private static void addExistingDataFields(PersistenceManager pm, Person detachedPerson)
{
if (JDOHelper.getPersistenceManager(detachedPerson) != null)
throw new IllegalArgumentException("detachedPerson is not detached!");
PropertySetID propertySetID = (PropertySetID) JDOHelper.getObjectId(detachedPerson);
if (propertySetID == null)
throw new IllegalArgumentException("detachedPerson does not have an object-id assigned!");
Person attachedPerson;
try {