public boolean hasApplicationForVersion(ApplicationId applicationId, Optional<Version> vespaVersion, Instant now) {
        try {
            return getForVersion(applicationId, vespaVersion, now) != null;
        }
        catch (VersionDoesNotExistException | NotFoundException ex) {
            return false;
        }
    }
Returns whether this registry has an application for the given application id and vespa version
configserver/src/main/java/com/yahoo/vespa/config/server/application/ApplicationMapper.java