ntManager.isNodeType(Constants.MIX_REFERENCEABLE, node.getPrimaryTypeName(), node.getMixinTypeNames());
deletedExistingPropery = false;
if (isMixReferenceable)
{
String identifier = node.getIdentifier();
ItemImpl relItem = dstDataManager.getItemByIdentifier(identifier, false);
ItemState changesItemState = null;
if (changes != null)
{
changesItemState = changes.getItemState(identifier);
}
if (relItem != null && !(changesItemState != null && changesItemState.isDeleted()))
{
if (removeExisting)
{
deletedExistingPropery = true;
itemDeletedExistingStates.add(new ItemState(relItem.getData(), ItemState.DELETED, true, dstDataManager
.getItemByIdentifier(relItem.getParentIdentifier(), false).getInternalPath(), level != 0));
}
else
{
throw new ItemExistsException("Item exists id = " + identifier + " name " + relItem.getName());
}
}
keepIdentifiers = true;
}