buddyGroupsIParticipateIn.put(newGroup.getGroupName(), newGroup);
// Integrate state transfer from the data owner of the buddy group
Fqn integrationBase = new Fqn(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN,
newGroup.getGroupName());
VersionAwareMarshaller marshaller = null;
if (cache.getUseRegionBasedMarshalling())
{
marshaller = cache.getMarshaller();
}
for (Iterator it = state.entrySet().iterator(); it.hasNext();)
{
Map.Entry entry = (Map.Entry) it.next();
Fqn fqn = (Fqn) entry.getKey();
String fqnS = fqn.toString();
if (marshaller == null || !marshaller.isInactive(fqn.toString()))
{
ClassLoader cl = (marshaller == null) ? null : marshaller.getClassLoader(fqnS);
Fqn integrationRoot = new Fqn(integrationBase, fqn);
cache._setState((byte[]) entry.getValue(), integrationRoot, cl);
}
}
}