public boolean matches(ComponentId id) {
        boolean versionMatch = getVersionSpecification().matches(id.getVersion());
        return getName().equals(id.getName())
                && versionMatch
                && namespaceMatch(id.getNamespace());
    }
Checks if a componentId matches a given spec
component/src/main/java/com/yahoo/component/ComponentSpecification.java