if (getJettyEnvXmlFile() != null) scanList.add(getJettyEnvXmlFile());
            public void changesDetected(Scanner scanner, List changes)            {                try                {                    getLog().info("restarting "+getWebApplication());                    getLog().debug("Stopping webapp ...");                    getWebApplication().stop();                    getLog().debug("Reconfiguring webapp ...");                    checkPomConfiguration();                    configureWebApplication();                    // check if we need to reconfigure the scanner,                    // which is if the pom changes                    if (changes.contains(getProject().getFile().getCanonicalPath()))                    {                        getLog().info("Reconfiguring scanner after change to pom.xml ...");                        scanList.clear();                        scanList.add(getWebXmlFile());                        scanList.add(getProject().getFile());                        scanList.addAll(getClassPathFiles());                        scanner.setRoots(scanList);                    }                    getLog().debug("Restarting webapp ...");                    getWebApplication().start();                    getLog().info("Restart completed at "+new Date().toString());                }                catch (Exception e)                {                    getLog().error("Error reconfiguring/restarting webapp after change in watched files",e);                }            }