public ComponentSpecification toSpecification() {
        if (isAnonymous())
            throw new RuntimeException("Can't generate a specification for an anonymous component id.");
        return new ComponentSpecification(getName(),
                getVersion().toSpecification(), getNamespace());
    }
Returns the string value of this id.
If no version is given, this is simply the name.
If a version is given, it is name:version.
Trailing ".0"'s are stripped from the version part.
component/src/main/java/com/yahoo/component/ComponentId.java