code: @GET
      @Path("localnode/health")
      @Produces(MediaType.TEXT_PLAIN)
      public String getLocalNodeHealth() throws MalformedObjectNameException
      {
          // Local service only - not enabled when running on top of Tomcat & co.
          if (n == null)
          {
              throw new ErrorDto("can only retrieve local node health when the web app runs on top of JQM", "", 7, Status.BAD_REQUEST);
          }
          if (n.getJmxServerPort() == null || n.getJmxServerPort() == 0)
          {
              throw new ErrorDto("JMX is not enabled on this server", "", 8, Status.BAD_REQUEST);
          }
  
          // Connect to JMX server
          MBeanServer server = ManagementFactory.getPlatformMBeanServer();
          ObjectName nodeBean = new ObjectName("com.enioka.jqm:type=Node,name=" + n.getName());
          Set<ObjectName> names = server.queryNames(nodeBean, null);
          if (names.isEmpty())
          {
              throw new ErrorDto("could not find the JMX Mbean of the local JQM node", "", 8, Status.INTERNAL_SERVER_ERROR);
          }
          ObjectName localNodeBean = names.iterator().next();
  
          // Query bean
          Object result;
          try
          {
              result = server.getAttribute(localNodeBean, "AllPollersPolling");
          }
          catch (Exception e)
          {
              throw new ErrorDto("Issue when querying JMX server", 12, e, Status.INTERNAL_SERVER_ERROR);
          }
          if (!(result instanceof Boolean))
          {
              throw new ErrorDto("JMX bean answered with wrong datatype - answer was " + result.toString(), "", 9,
                      Status.INTERNAL_SERVER_ERROR);
          }
  
          // Analyze output
          boolean res = (Boolean) result;
          if (!res)
          {
              throw new ErrorDto("JQM node has is not working as expected", "", 11, Status.SERVICE_UNAVAILABLE);
          }
  
          return "Pollers are polling";
      }
docs: ///////////////////////////////////////////////////////////