code: public String getURLMenu()
      {
          String strMenu = this.getProperty(DBParams.URL);
          if ((strMenu != null) && (strMenu.length() > 0))
          {   // Look to see if this URL has a menu associated with it.
              strMenu = Utility.getDomainFromURL(strMenu, null);
              // Now I have the domain name, try to lookup the menu name...
              Record recMenu = this.getMainRecord();
              recMenu.setKeyArea(MenusModel.CODE_KEY);
              
              try {
                  while (strMenu.length() > 0)
                  {
                      recMenu.getField(MenusModel.CODE).setString(strMenu);
                      if (recMenu.seek("="))
                          return recMenu.getField(MenusModel.CODE).toString();
                      if (strMenu.indexOf('.') == strMenu.lastIndexOf('.'))
                          break;  // xyz.com = stop looking
                      strMenu = strMenu.substring(strMenu.indexOf('.') + 1);  // Remove the next top level domain (ie., www)
                  }
              } catch (DBException ex)    {
                  ex.printStackTrace();
              }
          }
          return null;
      }
docs: From the URL, get the menu.
  First try the app URL, then try the host URL (ie., www.tourgeek.com/fred then www.tourgeek.com).
  @return The menu name.