if ((!resource.isDirectory()) && resource.lastModified() > lastModified) {
// Redeploy application
ContainerBase context = (ContainerBase) host.findChild(app.name);
host.removeChild(context);
try {
context.destroy();
} catch (Exception e) {
log.warn(sm.getString
("hostConfig.context.destroy", app.name), e);
}
// Delete other redeploy resources