// ///////////////////////////////////////////////////////////////////////////
 // INTERNALS
 // ///////////////////////////////////////////////////////////////////////////
 private void configure(ConfigurationContext configurationContext) {
   if (configurationContext != null
       && configurationContext.getJson() != null
       && configurationContext.getJson().containsKey(ConfigurationManager.CATEGORY_ROOTMENU)) {
     Map<String, Object> menuConfig =
         (Map<String, Object>)
             configurationContext.getJson().get(ConfigurationManager.CATEGORY_ROOTMENU);
     hideOrDisplay(menuConfig, ConfigurationManager.MENU_ACTIVITIES, R.id.menu_browse_activities);
     hideOrDisplay(menuConfig, ConfigurationManager.MENU_REPOSITORY, R.id.menu_browse_root);
     hideOrDisplay(menuConfig, ConfigurationManager.MENU_SITES, R.id.menu_browse_my_sites);
     hideOrDisplay(menuConfig, ConfigurationManager.MENU_TASKS, R.id.menu_workflow);
     hideOrDisplay(menuConfig, ConfigurationManager.MENU_FAVORITES, R.id.menu_favorites);
     hideOrDisplay(menuConfig, ConfigurationManager.MENU_SEARCH, R.id.menu_search);
     hideOrDisplay(menuConfig, ConfigurationManager.MENU_LOCAL_FILES, R.id.menu_downloads);
     hideOrDisplay(menuConfig, ConfigurationManager.MENU_NOTIFICATIONS, R.id.menu_notifications);
     hideOrDisplay(menuConfig, ConfigurationManager.MENU_SHARED, R.id.menu_browse_shared, true);
     hideOrDisplay(menuConfig, ConfigurationManager.MENU_MYFILES, R.id.menu_browse_userhome, true);
   } else {
     display();
   }
 }
 public static ConfigurationContext parseJson(Map<String, Object> json) {
   ConfigurationContext config = new ConfigurationContext();
   config.json = json;
   return config;
 }