mainController.addAction("login", new LoginAction());
mainController.addAction(BootstrapAction.ID, new BootstrapAction());
mainController.addView("loginView", new LoginView());
// bootstrap and login
mainController.handleEvent(
new com.mvc4g.client.Event(BootstrapAction.ID, Boolean.TRUE)
);
mainController.handleEvent(new Event("login", null));
}