detachedPerson.deflate();
}
public static LegalEntity detachLegalEntity(PersistenceManager pm, LegalEntity legalEntity, Set<EndCustomerReplicationPolicy> endCustomerReplicationPolicies)
{
FetchPlanBackup fetchPlanBackup = NLJDOHelper.backupFetchPlan(pm.getFetchPlan());
try {
// Collection<String> c1 = CollectionUtil.castCollection(pm.getFetchPlan().getGroups());
// Set<String> fetchGroups = new HashSet<String>(c1);
Set<String> fetchGroups = new HashSet<String>();
fetchGroups.add(FetchPlan.DEFAULT);