code: protected void addResource(String path) {
  
          CmsPathSelectField field = new CmsPathSelectField();
          field.setCmsObject(m_cms);
          field.setUseRootPaths(true);
          field.setValue(path);
          field.addValueChangeListener(new ValueChangeListener() {
  
              private static final long serialVersionUID = 8646438704383992571L;
  
              public void valueChange(ValueChangeEvent event) {
  
                  setOkButtonEnabled(true);
  
              }
          });
          m_componentsToValidate.add(field);
          CmsRemovableFormRow<CmsPathSelectField> row = new CmsRemovableFormRow<CmsPathSelectField>(
              field,
              CmsVaadinUtils.getMessageText(Messages.GUI_DATABASEAPP_SYNC_REMOVE_RESOURCE_0));
          row.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_DATABASEAPP_SYNC_RESOURCE_0));
          row.setRemoveRunnable(new Runnable() {
  
              public void run() {
  
                  setOkButtonEnabled(true);
              }
          });
          m_resources.addComponent(row);
      }
docs: Adds a resource to form.<p>
  
  @param path of resource to add