favoritesMenu = new FavoritesMenu();
messageBar = new MessageBar();
messageBar.setVisible(false);
injectMenuFunctions(this);
new PermissionsLoader().loadExplicitGlobalPermissions(new PermissionsLoadedListener() {
@Override
public void onPermissionsLoaded(Set<Permission> permissions) {
globalPermissions = (permissions != null) ? permissions : EnumSet.noneOf(Permission.class);
for (MenuItem item : MENU_ITEMS) {
updateMenuVisibility(item);