protected void restrictToMaster() {
   if (!serverStatus.hasCapability(ServerStatus.Capability.MASTER)) {
     LOG.warn("Rejected request that is only allowed against master nodes. Returning HTTP 403.");
     throw new WebApplicationException(403);
   }
 }