class EurekaInstanceConfigValidator {

    public void validate(ApiMediationServiceConfig config) {
        validateRoutes(config.getRoutes());
        if (config.getDiscoveryServiceUrls().stream().anyMatch(url -> url.toLowerCase().startsWith("https"))) {
            validateSsl(config.getSsl());
        }
        validateUrls(config);

        if (config.getCatalog() == null) {
            log.warn("The API Catalog UI tile configuration is not provided. Try to add apiml.service.catalog.tile section.");
        }

        if (config.getApiInfo() == null || config.getApiInfo().isEmpty()) {
            log.warn("The API info configuration is not provided. Try to add apiml.service.apiInfo section.");
        }
    }

}