code: private static void loginOnly(final String userId, final String password, final TokenChangedHandler tokenHandler) {
  		LoginRequest request = new LoginRequest();
  		request.setLogin(userId);
  		request.setPassword(password);
  		GwtCommand command = new GwtCommand(LoginRequest.COMMAND);
  		command.setCommandRequest(request);
  		GwtCommandDispatcher.getInstance().execute(command, new AbstractCommandCallback<LoginResponse>() {
  
  			public void execute(LoginResponse response) {
  				UserDetail userDetail = new UserDetail();
  				userDetail.setUserId(response.getUserId());
  				userDetail.setUserName(response.getUserName());
  				userDetail.setUserOrganization(response.getUserOrganization());
  				userDetail.setUserDivision(response.getUserDivision());
  				userDetail.setUserLocale(response.getUserLocale());
  				if (null != tokenHandler) {
  					tokenHandler.onTokenChanged(new TokenChangedEvent(response.getToken(), userDetail));
  				}
  			}
  		});
  	}
docs: /* Effectively log in a certain user.