protected void handleEvent(AppEvent event) {
if (event.getType() == AppEvents.NavMail) {
LayoutContainer wrapper = (LayoutContainer) Registry.get(AppView.CENTER_PANEL);
wrapper.removeAll();
wrapper.add(container);
wrapper.layout();
return;
}
if (event.getType() == AppEvents.ViewMailItems) {
Folder f = (Folder) event.getData("folder");