/** Adds an initial block to be set on the first cluster state created. */
 public synchronized void addInitialStateBlock(ClusterBlock block) throws IllegalStateException {
   if (lifecycle.started()) {
     throw new IllegalStateException("can't set initial block when started");
   }
   initialBlocks.addGlobalBlock(block);
 }
 public void addInitialStateBlock(ClusterBlock block) throws ElasticSearchIllegalStateException {
   if (lifecycle.started()) {
     throw new ElasticSearchIllegalStateException("can't set initial block when started");
   }
   initialBlocks.addGlobalBlock(block);
 }