code: private void generateMapRecursive(final List<NavigationEntryInterface> pnavigationEntries) {
      for (final NavigationEntryInterface entryToAdd : pnavigationEntries) {
        String token = entryToAdd.getToken();
        if (entryToAdd.getMenuValue() != null && token != null) {
          if (token.endsWith("/" + StringUtils.removeStart(loginToken, "/"))) {
            token = loginToken;
          }
          if (!placeMap.containsKey(token)) {
            placeMap.put(token, entryToAdd);
          }
        }
        if (entryToAdd instanceof NavigationEntryFolder) {
          generateMapRecursive(((NavigationEntryFolder) entryToAdd).getSubEntries());
        }
      }
    }
docs: create map out of the navigation list.
  
  @param pnavigationEntries list of navigation entries