It's already done by the calller: 
https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/action/support/master/TransportMasterNodeOperationAction.java#L145