i'm using **SpringBoot v 1.5.3** in my application and i added actuators **health**, info and metrics, and they are working fine using the available endpoints.
I need to **get the global health status of my application**.

Here is my code:

```
package com.test.health.indicator;

import java.util.Collections;
import org.springframework.boot.actuate.endpoint.HealthEndpoint;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.boot.actuate.info.Info;
import org.springframework.boot.actuate.info.InfoContributor;
import org.springframework.stereotype.Component;
import org.springframework.boot.actuate.health.Status;

@Component
public class healthContributorToInfo implements InfoContributor {
     private HealthEndpoint healthEndpoint;

    @Override
    public void contribute(Info.Builder builder) {

        Health health = ((HealthIndicator) this.healthEndpoint).health();
        Status status = health.getStatus();

        builder.withDetail("Health Indicator",
                Collections.singletonMap("Global Satatus", Health.status(status.getCode())));
    }
}

```

Unfortunately my code return null exception because and i don't get the health status object.
Can someone know how to do that.
Thank you!