public static void main(String[] args) {
   String cfgFileName =
       LegacyKeySupportSystemProperties.getProperty(
           "infinispan.configuration",
           "infinispan.demo.cfg",
           "config-samples/gui-demo-cache-config.xml");
   frame = new JFrame("Infinispan GUI Demo (STOPPED)");
   frame.setContentPane(new InfinispanDemo(cfgFileName).panel1);
   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   frame.pack();
   frame.setVisible(true);
   frame.setResizable(true);
 }
 private void updateTitleBar() {
   String title = "Infinispan GUI Demo";
   if (cache != null && cache.getStatus() == ComponentStatus.RUNNING) {
     title += " (STARTED) " + getLocalAddress() + " Cluster size: " + getClusterSize();
   } else {
     title += " (STOPPED)";
   }
   frame.setTitle(title);
 }