public ComponentId toId() {
        Version version =
                (getVersionSpecification() == VersionSpecification.emptyVersionSpecification) ?
                        Version.emptyVersion :
                        getVersionSpecification().lowestMatchingVersion();

        return new ComponentId(getName(), version, getNamespace());
    }
Converts the specification to an id
component/src/main/java/com/yahoo/component/ComponentSpecification.java