@POST @Path("/enable") public Map enable(@QueryParam("shardId") String shardId, @QueryParam("enable") boolean enable) { Map<Object, Object> result = new HashMap<>(); Member localMember = GondolaApplication.getRoutingFilter().getGondola().getShard(shardId).getLocalMember(); try { localMember.enable(enable); result.put("success", true); } catch (Exception e) { result.put("success", false); result.put("reason", e.getMessage()); } return result; }