setParentRegId(null != reg.getParentRegistration() ? reg.getParentRegistration().getId() : null);
setSubscriptions(reg.getSubscriptions());
if (reg instanceof DatabusV3MultiPartitionRegistration)
{
DatabusV3MultiPartitionRegistration mpReg = (DatabusV3MultiPartitionRegistration)reg;
setMultiPartition(true);
ArrayList<RegistrationId> childrenRegs =
new ArrayList<RegistrationId>(mpReg.getPartionRegs().size());
for (Map.Entry<PhysicalPartition, DatabusV3Registration> child: mpReg.getPartionRegs().entrySet())
{
childrenRegs.add(child.getValue().getId());
}
setChildrenRegistrations(childrenRegs);
}