class HealthManager {

    SystemHealthState getHealth () {
        if (getSystemHealth() != null) {
            for (SystemHealth health : getSystemHealth()) {
                SystemHealthState healthCheck = health.getHealth();
                if (healthCheck == SystemHealthState.OK) {
                    log.debug("{} : {}", health.getClass().getSimpleName(), healthCheck);
                    continue;
                }
                log.error("{} : {}", health.getClass().getSimpleName(), healthCheck);
                return SystemHealthState.ERROR;
            }
            return SystemHealthState.OK;
        }
        return SystemHealthState.UNKNOWN;
    }

    @Autowired  HealthManager();
      HealthManager(Collection<SystemHealth> systemHealth);

}