public String last() {
        if (compounds.isEmpty()) return "";
        return compounds.get(compounds.size() - 1);
    }
Returns the name after the last dot. If there are no dots, the full name is returned.
container-core/src/main/java/com/yahoo/processing/request/CompoundName.java