if (!isFlagSet(CREATED)) // if newly created, then nothing to copy.
{
backup = node;
// don't copy the NodeReference but the InternalNode that the NodeReference delegates to.
InternalNode backupDelegationTarget = ((NodeReference) backup).getDelegate();
node = backupDelegationTarget.copy();
}
}
@Override
@SuppressWarnings("unchecked")