private void makeImportUpdateForm(WikiImportProperty importProps) {
   if (importProps.isRoot()) {
     html.put("makeImportRootForm", true);
   } else {
     html.put("makeImportSubpageForm", true);
   }
   if (importProps.isAutoUpdate()) html.put("autoUpdate", true);
   html.put("sourceUrl", importProps.getSourceUrl());
 }
  private void makeFormSections() {
    makePropertiesForm();

    WikiImportProperty importProperty = WikiImportProperty.createFrom(pageData.getProperties());
    if (importProperty != null) makeImportUpdateForm(importProperty);
    else makeImportForm();

    makeSymbolicLinkSection();
  }
    public void run(TestResponder testResponder, PageData data) throws Exception {
      this.testResponder = testResponder;
      this.data = data;
      importProperty = WikiImportProperty.createFrom(data.getProperties());
      if (importProperty != null && importProperty.isAutoUpdate()) {
        testResponder.addToResponse("<span class=\"meta\">Updating imported content...</span>");
        testResponder.addToResponse("<span class=\"meta\">");

        try {
          wikiImporter = importerFactory.newImporter(this);
          wikiImporter.parseUrl(importProperty.getSourceUrl());
          wikiPage = data.getWikiPage();

          doUpdating();

          if (!errorOccured) testResponder.addToResponse("done");

        } catch (Exception e) {
          pageImportError(data.getWikiPage(), e);
        }

        testResponder.addToResponse("</span>");
      }
    }
 public boolean isImported() {
   PageData data = getData();
   return data != null && WikiImportProperty.isImported(data);
 }