throw new LockException("Node " + node.getPath() + " is locked ");
}
StreamImporter importer =
new ExportImportFactory().getStreamImporter(((NodeData) node.getData()), uuidBehavior,
new ItemDataKeeperAdapter(getTransientNodesManager()), getTransientNodesManager(),
nodeTypeManager, getLocationFactory(), getValueFactory(),
getWorkspace().getNamespaceRegistry(), getAccessManager(), userState, context,
(RepositoryImpl) getRepository(), getWorkspace().getName());
importer.importStream(in);
}