code: private TransientItemData copyPropertyData(PropertyData prop) throws RepositoryException
     {
  
        if (prop == null)
           return null;
  
        // make a copy, value may be null for deleting items
        TransientPropertyData newData =
           new TransientPropertyData(prop.getQPath(), prop.getIdentifier(), prop.getPersistedVersion(), prop.getType(),
              prop.getParentIdentifier(), prop.isMultiValued(), prop.getValues());
  
        return newData;
     }
docs: Copy <code>PropertyData prop</code> to new TransientItemData
  
  @param prop
  @return
  @throws RepositoryException