public String getName() {
        if (elements.isEmpty()) return "";
        return elements.get(elements.size() - 1);
    }
Returns the name of this path element, typically the last element in the path string
vespajlib/src/main/java/com/yahoo/path/Path.java