public ContentElement getChild()

in src/main/java/org/apache/sling/contentparser/testutils/mapsupport/ContentElement.java [74:86]


    public ContentElement getChild(String path) {
        String childName = StringUtils.substringBefore(path, "/");
        ContentElement child = children.get(childName);
        if (child == null) {
            return null;
        }
        String remainingPath = StringUtils.substringAfter(path, "/");
        if (StringUtils.isEmpty(remainingPath)) {
            return child;
        } else {
            return child.getChild(remainingPath);
        }
    }