code: CmsModuleResourceSelectField createModuleResourceField(String moduleResource) {
  
          CmsModuleResourceSelectField resField = new CmsModuleResourceSelectField();
          CmsObject moduleCms = null;
          try {
              moduleCms = OpenCms.initCmsObject(A_CmsUI.getCmsObject());
              if (getSelectedSite() != null) {
                  moduleCms.getRequestContext().setSiteRoot(getSelectedSite());
              }
              resField.setCmsObject(moduleCms);
              if (moduleResource != null) {
                  resField.setValue(moduleResource);
              }
              return resField;
          } catch (CmsException e) {
              LOG.error(e.getLocalizedMessage(), e);
              return null;
          }
      }
docs: Creates a module resource selection field.<p>
  
  @param moduleResource the initial content for the field
  
  @return the module resource selection field