Source:
public void executeCommand(UICommand command) { super.executeCommand(command); if (command.equals(getNewVolumeCommand())) { newVolume(); } else if (command.equals(getRemoveVolumeCommand())) { removeVolume(); } else if(command.getName().equals("rebalanceNotStarted")) { closeConfirmationWindow(); } else if (command.getName().equals("Cancel")) { cancel(); } else if (command.getName().equals("onCreateVolume")) { onCreateVolume(); } else if (command.equals(getStartCommand())) { start(); } else if (command.equals(getStopCommand())) { stop(); } else if (command.equals(getStartRebalanceCommand())) { startRebalance(); } else if (command.equals(getStopRebalanceCommand())) { stopRebalance(); } else if (command.getName().equals("onStopRebalance")) { onStopRebalance(); } else if (command.equals(getStatusRebalanceCommand())) { showRebalanceStatus(); } else if (command.getName().equals("CancelConfirmation")) { setConfirmWindow(null); } else if (command.getName().equals("CancelRebalanceStatus")) { cancelRebalanceStatus(); }else if (command.equals(getOptimizeForVirtStoreCommand())) { optimizeForVirtStore(); } else if (command.getName().equals("onStop")) { onStop(); } else if (command.getName().equals("OnRemove")) { onRemoveVolume(); } else if(command.getName().equals("stop_rebalance_from_status")) { stopRebalance(); } else if(command.equals(getStartVolumeProfilingCommand()) || command.getName().equals("Start Profiling")) { startVolumeProfiling(); } else if(command.equals(getStopVolumeProfilingCommand()) || command.getName().equals("Stop Profiling")) { stopVolumeProfiling(); } else if(command.equals(getShowVolumeProfileDetailsCommand()) || command.getName().equals("Show Profile Details")) { showVolumeProfiling(); }else if(command.getName().equalsIgnoreCase("close_profile_stats")) { setWindow(null); } else if(command.getName().equalsIgnoreCase("profilingNotStarted")) { if(getConfirmWindow() == null) { return; } getConfirmWindow().stopProgress(); setConfirmWindow(null); } }

Target:
public void executeCommand(UICommand command) { super.executeCommand(command); if (command.equals(getNewVolumeCommand())) { newVolume(); } else if (command.equals(getRemoveVolumeCommand())) { removeVolume(); } else if(command.getName().equals("rebalanceNotStarted")) { closeConfirmationWindow(); } else if (command.getName().equals("Cancel")) { cancel(); } else if (command.getName().equals("onCreateVolume")) { onCreateVolume(); } else if (command.equals(getStartCommand())) { start(); } else if (command.equals(getStopCommand())) { stop(); } else if (command.equals(getStartRebalanceCommand())) { startRebalance(); } else if (command.equals(getStopRebalanceCommand())) { stopRebalance(); } else if (command.getName().equals("onStopRebalance")) { onStopRebalance(); } else if (command.equals(getStatusRebalanceCommand())) { showRebalanceStatus(); } else if (command.getName().equals("CancelConfirmation")) { setConfirmWindow(null); } else if (command.getName().equals("CancelRebalanceStatus")) { cancelRebalanceStatus(); }else if (command.equals(getOptimizeForVirtStoreCommand())) { optimizeForVirtStore(); } else if (command.getName().equals("onStop")) { onStop(); } else if (command.getName().equals("OnRemove")) { onRemoveVolume(); } else if(command.getName().equals("stop_rebalance_from_status")) { stopRebalance(); } else if(command.equals(getStartVolumeProfilingCommand()) || command.getName().equals("startProfiling")) { startVolumeProfiling(); } else if(command.equals(getStopVolumeProfilingCommand()) || command.getName().equals("stopProfiling")) { stopVolumeProfiling(); } else if(command.equals(getShowVolumeProfileDetailsCommand()) || command.getName().equals("showProfileDetails")) { showVolumeProfiling(); }else if(command.getName().equalsIgnoreCase("closeProfileStats")) { setWindow(null); } else if(command.getName().equalsIgnoreCase("profilingNotStarted")) { onProfileNotStartedError(); } }