code: private Element lifeCycle(HttpServletRequest request,
                                String id,
                                LifeCycle lc,
                                String name)
      {
          Composite comp=new Composite();
          comp.add(new Target(id));
          Font font = new Font();
          comp.add(font);
          font.color(lc.isStarted()?"green":"red");
          font.add(name);
  
          String action=lc.isStarted()?"Stop":"Start";
          
          comp.add("&nbsp;[");
          comp.add(new Link(URI.addPaths(request.getContextPath(),request.getServletPath())+
                            "?T="+Long.toString(System.currentTimeMillis(),36)+
                            "&A="+action+
                            "&ID="+UrlEncoded.encodeString(id),
                            action));
          comp.add("]");
          return comp;
      }
docs: /* ------------------------------------------------------------