code: private List getModules() {
  
          List retVal = new ArrayList();
          // get all modules
          Iterator i = OpenCms.getModuleManager().getModuleNames().iterator();
          // add them to the list of modules
          while (i.hasNext()) {
              String moduleName = (String)i.next();
              if (moduleName.equals(getParamDependency())) {
                  // check for the preselection
                  retVal.add(new CmsSelectWidgetOption(moduleName, true));
              } else {
                  retVal.add(new CmsSelectWidgetOption(moduleName, false));
              }
          }
          Collections.sort(retVal, new Comparator() {
  
              /** Collator used / wrapped */
              private Collator m_collator = Collator.getInstance(getLocale());
  
              /**
               * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
               */
              public int compare(Object arg0, Object arg1) {
  
                  CmsSelectWidgetOption o1 = (CmsSelectWidgetOption)arg0;
                  CmsSelectWidgetOption o2 = (CmsSelectWidgetOption)arg1;
                  return m_collator.compare(o1.getOption(), o2.getOption());
              }
          });
          return retVal;
  
      }
docs: Get the list of all modules available.<p>
  
  @return list of module names