code: @Path("node/{nodeName}/log")
      @Produces("application/octet-stream")
      @GET
      public InputStream getNodeLog(@PathParam("nodeName") String nodeName, @QueryParam("latest") int latest,
              @Context HttpServletResponse res)
      {
          SelfDestructFileStream fs = (SelfDestructFileStream) ((JdbcClient) JqmClientFactory.getClient()).getEngineLog(nodeName, latest);
          res.setHeader("Content-Disposition", "attachment; filename=" + nodeName + ".log");
          return fs;
      }
docs: ////////////////////////////////////////////////////////////////////////