private Application getApplication(ApplicationId appId, Optional<Version> vespaVersion) {
        try {
            return applicationMapper.getForVersion(appId, vespaVersion, clock.instant());
        } catch (VersionDoesNotExistException ex) {
            throw new NotFoundException(String.format("%sNo such application (id %s): %s", TenantRepository.logPre(tenant), appId, ex.getMessage()));
        }
    }
Given baseIdSegment search/ and id search/container/default.0, return search/container
@return id segment with one extra level from the id appended
configserver/src/main/java/com/yahoo/vespa/config/server/application/TenantApplications.java