public Node addNode()

in src/main/java/org/apache/sling/jcr/base/internal/mount/ProxySession.java [602:614]


    public Node addNode(String parent, String path, String name, String type) throws RepositoryException {
        if (isMount(path)) {
            return wrap(this.mount.getNode(parent).addNode(name, type));
        }
        if (isMountParent(path)) {
            this.mount.getNode(parent).addNode(name, type);
            if (sync == null) {
                sync = new HashSet<>();
            }
            sync.add(path);
        }
        return wrap(this.jcr.getNode(parent).addNode(name, type));
    }