public CompoundName prepend(String ... nameParts) {
        if (nameParts.length == 0) return this;
        if (isEmpty()) return fromComponents(nameParts);

        List<String> newCompounds = new ArrayList<>(nameParts.length + compounds.size());
        newCompounds.addAll(List.of(nameParts));
        newCompounds.addAll(this.compounds);
        return new CompoundName(newCompounds);
    }
Returns a compound name which has the given name components prepended to this name,
in the given order, i.e new ComponentName("c").prepend("a","b") will yield "a.b.c".

@param nameParts if name is empty this returns <code>this</code>
container-core/src/main/java/com/yahoo/processing/request/CompoundName.java