private PingResponse getPingResponse() {
   final ClusterState clusterState = contextProvider.clusterState();
   return new PingResponse(
       clusterState.nodes().getLocalNode(), clusterState.nodes().getMasterNode(), clusterState);
 }
 private ClusterName getClusterName() {
   return contextProvider.clusterState().getClusterName();
 }