public String executeCmd(XCommand cmd) { this.executeState = "Executing..."; String ans = "OK"; AlertUtil.StartWait(); Notify(); if (cmd != null) { CommandTask task = new CommandTask(cmd, user); ans = task.doTask(); } this.executeState = "OK"; Notify(); AlertUtil.StopWait(); return(ans); }