}
}
//if we've found or downloaded the war
if (result) {
//get the webapp loader
LoaderMXBean loader = getLoader();
if (loader != null) {
//un-archive it to app dir
FileUtil.unzip(srcDir + '/' + applicationWarName, contextDir);
//load and start the context
loader.startWebApplication(application);
} else {
//just copy the war to the webapps dir
try {
FileUtil.moveFile(srcDir + '/' + applicationWarName, webappsDir + '/' + application + ".war");
ServiceUtils.invokeOnConnection(conn, "onAlert",