private void registerHealthChecks(Environment environment) {

        final Map<String, HealthCheck> beansOfType = applicationContext.getBeansOfType(HealthCheck.class);

        for (Map.Entry<String, HealthCheck> entry : beansOfType.entrySet()) {
            environment.healthChecks().register(entry.getKey(),entry.getValue());
            logger.info("Registering healthCheck: " + entry.getValue().getClass().getName());
        }
    }