* {@inheritDoc}
*/
public NodeIterator merge(String absPath, String srcWorkspaceName,
boolean bestEffort, boolean isShallow)
throws RepositoryException {
NodeStateEx state = getNodeState(absPath,
ItemValidator.CHECK_PENDING_CHANGES,
Permission.VERSION_MNGMT);
List<ItemId> failedIds = new LinkedList<ItemId>();
mergeOrUpdate(state, srcWorkspaceName, failedIds, bestEffort, isShallow);
return new LazyItemIterator(session.getItemManager(), failedIds);