protected boolean isError() {
   updateProjectsIfNeeded();
   if (!ExamplesOperator.getInstance().getAllErrors().isEmpty()) {
     return true;
   }
   return false;
 }
 protected void updateProjectsIfNeeded() {
   for (String string : ExamplesOperator.getInstance().getAllErrors()) {
     if (string.contains("not up-to-date with pom.xml")) { // maven
       // update is
       // needed
       // sometimes.
       runUpdate();
     }
   }
 }
 protected void checkForErrors(Quickstart q) {
   updateProjectsIfNeeded();
   String errorMessages = "";
   List<String> allErrors = new ArrayList<String>();
   List<String> errors = ExamplesOperator.getInstance().getAllErrors();
   for (String error : errors) {
     if (!error.contains("Unable to delete") && !error.contains("Could not delete")) {
       reporter.addError(q, "ERROR IN PROJECT: " + error);
       errorMessages += "\t" + error + "\n";
       allErrors.add(error);
     }
   }
   if (!allErrors.isEmpty()) {
     fail("There are errors in imported project:\n" + errorMessages);
   }
 }
 private void importTestUtilsIfNeeded(Quickstart qstart) {
   for (String error : ExamplesOperator.getInstance().getAllErrors()) {
     if (error.contains("Missing artifact org.javaee7:test-utils")) {
       Quickstart testUtils =
           new Quickstart(
               "test-utils",
               qstart.getPath().getAbsolutePath().replace(qstart.getName(), "test-utils"));
       importQuickstart(testUtils);
       break;
     }
     if (error.contains("Missing artifact org.javaee7:util")) {
       Quickstart testUtils =
           new Quickstart(
               "util", qstart.getPath().getAbsolutePath().replace(qstart.getName(), "test-utils"));
       importQuickstart(testUtils);
       break;
     }
   }
 }
 protected void checkForWarnings(Quickstart q) {
   for (String warning : ExamplesOperator.getInstance().getAllWarnings()) {
     reporter.addWarning(q, warning);
   }
 }