code: public static Menu getMenu(List<String> permissions) throws PMException {
          try {
              MenuBuilder mb = new MenuBuilder(PresentationManager.getPm().getMenu());
              Menu menu = cleanWithoutPerms(mb.getMenu(), permissions);
              return menu;
          } catch (Exception e) {
              throw new PMException("pm_core.cant.load.menu");
          }
      }
docs: Builds the menu for the user.
  @param permissions List of permissions
  @return The filtered menu associated to the permissions of the user.
  @throws PMException