public String asString() {
        if (equals(EMPTY)) return "";
        return registry + "/" + repository + tag.map(t -> ':' + t).orElse("");
    }
Returns a copy of this with registry set to given value
config-provisioning/src/main/java/com/yahoo/config/provision/DockerImage.java