code: public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws PathNotFoundException,
        ConstraintViolationException, VersionException, RepositoryException
     {
        session.checkLive();
        NodeImpl node = (NodeImpl)session.getItem(parentAbsPath);
        // checked-in check
        if (!node.checkedOut())
        {
           throw new VersionException("Node " + node.getPath() + " or its nearest ancestor is checked-in");
        }
  
        // Check if node is not protected
        if (node.getDefinition().isProtected())
        {
           throw new ConstraintViolationException("Can't add protected node " + node.getName() + " to "
              + node.getParent().getPath());
        }
  
        // Check locking
        if (!node.checkLocking())
        {
           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);
     }
docs: {@inheritDoc}