public CompoundName rest(int n) {
        if (n == 0) return this;
        if (compounds.size() < n)
            throw new IllegalArgumentException("Asked for the rest after " + n + " components but '" +
                                               this + "' only have " + compounds.size() + " components.");
        if (n == 1) return rest();
        if (compounds.size() == n) return empty;
        return rest.rest(n - 1);
    }
Returns the name starting after the n first components (i.e dots).
This may be the empty name.

@throws IllegalArgumentException if this does not have at least that many components
container-core/src/main/java/com/yahoo/processing/request/CompoundName.java