code: private void endNode() throws RepositoryException
     {
        ImportNodeData currentNodeInfo = (ImportNodeData)tree.pop();
  
        NodePropertiesInfo currentNodePropertiesInfo = mapNodePropertiesInfo.get(currentNodeInfo.getIdentifier());
  
        if (currentNodePropertiesInfo != null)
        {
           checkProperties(currentNodePropertiesInfo);
        }
  
        mapNodePropertiesInfo.remove(currentNodeInfo.getIdentifier());
  
        currentNodeInfo.setMixinTypeNames(currentNodeInfo.getMixinTypeNames());
  
        if (currentNodeInfo.isMixVersionable())
        {
           createVersionHistory(currentNodeInfo);
        }
  
        currentNodeInfo.setACL(ACLInitializationHelper.initAcl(currentNodeInfo.getACL(), currentNodeInfo.getExoOwner(),
           currentNodeInfo.getExoPrivileges()));
     }
docs: endNode.
  
  @throws RepositoryException