NodeType primaryType = nodeType(nodeChange.getPrimaryType());
Set<NodeType> mixinTypes = nodeTypes(nodeChange.getMixinTypes());
// node moved
if (nodeChange instanceof NodeMoved) {
NodeMoved nodeMovedChange = (NodeMoved)nodeChange;
Path oldPath = nodeMovedChange.getOldPath();
fireNodeMoved(events, bundle, newPath, nodeId, oldPath, primaryType, mixinTypes);
} else if (nodeChange instanceof NodeRenamed) {
NodeRenamed nodeRenamedChange = (NodeRenamed)nodeChange;
Path oldPath = pathFactory().create(newPath.subpath(0, newPath.size() - 1), nodeRenamedChange.getOldSegment());