getLog().info("Restarting webapp ...");
getLog().debug("Restarting webapp ...");
            public void changesDetected(Scanner scanner, List changes)            {                try                {                    getLog().info("Stopping webapp ...");                    getWebApplication().stop();                    getLog().info("Reconfiguring webapp ...");                    checkPomConfiguration();                                        // 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 ...");                        ArrayList scanList = getScanList();                        scanList.clear();                        scanList.add(getProject().getFile());                        scanList.add(webApp);                        setScanList(scanList);                        scanner.setRoots(scanList);                    }                    getLog().info("Restarting webapp ...");                    getWebApplication().start();                    getLog().info("Restart completed.");                }                catch (Exception e)                {                    getLog().error("Error reconfiguring/restarting webapp after change in watched files",e);                }            }