Context oldContext = (Context) host.findChild(APP_NAME.getName());
StateTracker tracker = new StateTracker();
oldContext.addLifecycleListener(tracker);
// Trigger an auto-deployment cycle
host.backgroundProcess();
Context newContext = (Context) host.findChild(APP_NAME.getName());
// Check the results
if (resultXml) {