xml = ((Application)WOApplication.application()).siteConfig().generateAdaptorConfigXML(true, shouldIncludeUnregisteredInstances);
} finally {
theApplication._lock.endReading();
}
WOResponse aResponse = WOApplication.application().createResponseInContext(null);
aResponse.appendContentString(xml);
aResponse.setHeader("text/xml", "content-type");
aResponse.setHeader(aFormat.format(new NSTimestamp()), "Last-Modified");
if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupDeployment))
NSLog.debug.appendln("woConfigAction returned: " + xml);