public WebEndpointResponse<Health> map(Health health, SecurityContext securityContext,
			ShowDetails showDetails) {
		if (!canSeeDetails(securityContext, showDetails)) {
			health = Health.status(health.getStatus()).build();
		}
		return createWebEndpointResponse(health);
	}
public WebEndpointResponse < Health > map ( Health health , SecurityContext securityContext , ShowDetails showDetails ) { if ( ! canSeeDetails ( securityContext , showDetails ) ) { health = Health . status ( health . getStatus ( ) ) . build ( ) ; } return createWebEndpointResponse ( health ) ; }
Maps the given {@code health} to a {@link WebEndpointResponse}, honouring the given
{@code showDetails} using the given {@code securityContext}.
@param health the health to map
@param securityContext the security context
@param showDetails when to show details in the response
@return the mapped response