LogFactory.getLog("SFManagamentConsole").warn(" showing rootProcess");
LogFactory.getLog("sfManagementConsole").warn(" showing rootProcess");
   public static Display startConsole(String nameDisplay, int height,         int width, String positionDisplay, final boolean showRootProcess, final boolean showCDasChild,         final String hostname, final int port, boolean shouldSystemExit)          throws Exception {      final JButton refreshButton;      JMenu jMenuMng = new JMenu();      final JCheckBoxMenuItem jCheckBoxMenuItemShowRootProcessPanel = new JCheckBoxMenuItem();      final JCheckBoxMenuItem jCheckBoxMenuItemShowCDasChild = new JCheckBoxMenuItem();      String infoConnection = ("sfManagementConsole connecting to " +            hostname + ":" + port);      //Logger.log(infoConnection);      LogFactory.getLog("SFManagamentConsole").out(infoConnection);      nameDisplay = nameDisplay + " [" + "sfManagementConsole connected to " +            hostname + ":" + port + "]";      if (showRootProcess) {         LogFactory.getLog("SFManagamentConsole").warn(" showing rootProcess");         //Logger.log(" showing rootProcess");      } else {         //System.out.println("");      }      final Display newDisplay;      if (org.smartfrog.services.display.WindowUtilities.areGraphicsAvailable()) {         newDisplay = new Display(nameDisplay, null);         addFrogIcon(newDisplay);         newDisplay.setShouldSystemExit(shouldSystemExit);         newDisplay.setVisible(false);         newDisplay.setSize(width, height);         org.smartfrog.services.display.WindowUtilities.setPositionDisplay(null,               newDisplay, positionDisplay);         // Button for Refresh view ...         refreshButton = new JButton();         refreshButton.setText("Refresh");         refreshButton.setActionCommand("refreshButton");         refreshButton.addActionListener(            new ActionListener() {               public void actionPerformed(ActionEvent e) {                  //System.out.println("ActionEvent SFDEployDisplay: "+ e);                  if ((e.getActionCommand()).equals("refreshButton")) {                     newDisplay.cleanAddedPanels();                     try {                        addProcessesPanels(newDisplay, jCheckBoxMenuItemShowRootProcessPanel.isSelected(), //showRootProcess,                              jCheckBoxMenuItemShowCDasChild.isSelected(),hostname, port);                     } catch (Exception ex) {                        if (LogFactory.getLog("SFManagamentConsole").isErrorEnabled()){                          LogFactory.getLog("SFManagamentConsole").error(ex);                        }                        exitWith("Error in SFDeployDisplay.refresh():" + ex, ExitCodes.EXIT_ERROR_CODE_GENERAL);                     }                  }               }            });         newDisplay.mainToolBar.add(refreshButton);         newDisplay.showToolbar(true);         // Add deployTreePanel menu items         jMenuMng.setText("Mng. Console");         newDisplay.jMenuBarDisplay.add(jMenuMng);         jCheckBoxMenuItemShowRootProcessPanel.setSelected(showRootProcess);         jCheckBoxMenuItemShowRootProcessPanel.setText("Show rootProcess");         jCheckBoxMenuItemShowRootProcessPanel.setAccelerator(javax.swing.KeyStroke.getKeyStroke(77, java.awt.event.KeyEvent.CTRL_MASK | java.awt.event.KeyEvent.ALT_MASK, false));         jCheckBoxMenuItemShowRootProcessPanel.addActionListener(new ActionListener() {               public void actionPerformed(ActionEvent e) {                            refreshButton.doClick();               }         });         jMenuMng.add(jCheckBoxMenuItemShowRootProcessPanel);         jCheckBoxMenuItemShowCDasChild.setSelected(showCDasChild);         jCheckBoxMenuItemShowCDasChild.setText("Show show CD as child");         jCheckBoxMenuItemShowCDasChild.addActionListener(new ActionListener() {               public void actionPerformed(ActionEvent e) {                            refreshButton.doClick();               }         });         jMenuMng.add(jCheckBoxMenuItemShowCDasChild);         newDisplay.setVisible(true);         addProcessesPanels(newDisplay, showRootProcess, showCDasChild, hostname, port);         return newDisplay;      }      return null;   }