{
throw new LockException("Node " + node.getPath() + " is locked ");
}
Map<String, Object> context = new HashMap<String, Object>();
context.put(ContentImporter.RESPECT_PROPERTY_DEFINITIONS_CONSTRAINTS, true);
return new ExportImportFactory().getImportHandler(((NodeData)node.getData()), uuidBehavior, session
.getTransientNodesManager().getTransactManager(), session.getTransientNodesManager().getTransactManager(),
nodeTypeManager, session.getLocationFactory(), session.getValueFactory(), getNamespaceRegistry(), session
.getAccessManager(), session.getUserState(), context, (RepositoryImpl)session.getRepository(), name);
}