rem: var win = module.fsm.getObject("login_window"); 
add: var win = fsm.getObject("login_window"); 
context:       "onentry" :        function(fsm, event)        {          // Retrieve the login window object          var win = module.fsm.getObject("login_window");          // Clear the password field          win.password.setValue("");          // If there's no value selected for domain...          if (win.domain.getValue() == null)          {            // ... then select the first value            win.domain.setSelected(win.domain.getList().getFirstChild());          }          // Retrieve the current RPC request          var rpcRequest = _this.getCurrentRpcRequest();          // Did we just return from an RPC request and was it a login request?          if (fsm.getPreviousState() == "State_AwaitRpcResult" &&              rpcRequest.service == "samba.system" &&              rpcRequest.params.length > 1 &&              rpcRequest.params[1] == "login")          {            // Yup.  Display the result.  Pop the old request off the stack            var loginRequest = _this.popRpcRequest();            // Retrieve the result            var result = loginRequest.getUserData("result");            // Did we succeed?            if (result.type == "failed")            {              // Nope.  Just reset the caption, and remain in this state.              win.setCaption("Login Failed.  Try again.");            }            else            {              // Login was successful.  Generate an event that will transition              // us back to the AwaitRpcResult state to again await the result              // of the original RPC request.              win.dispatchEvent(new qx.event.type.Event("complete"), true);              // Reissue the original request.  (We already popped the login              // request off the stack, so the current request is the original              // one.)              var origRequest = _this.getCurrentRpcRequest();                            // Retrieve the RPC object */              var rpc = fsm.getObject("swat.main.rpc");              // Set the service name              rpc.setServiceName(origRequest.service);              // Reissue the request              origRequest.request =                qx.io.remote.Rpc.prototype.callAsyncListeners.apply(                  rpc,                  origRequest.params);              // Clear the password field, for good measure              win.password.setValue("");              // Close the login window              win.close();            }            // Dispose of the login request            loginRequest.request.dispose();            loginRequest.request = null;          }        },
meta: 1914	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1914/3e608a173e65403686628387a09f66096978783f/AbstractModuleFsm.js/clean/webapps/swat/source/class/swat/main/AbstractModuleFsm.js