URL configFile = (URL) this.appContext.get(Constants.CONTEXT_CONFIG_URL);
if (getLogger().isInfoEnabled()) {
getLogger().info("Reloading from: " + configFile.toExternalForm());
}
Cocoon c = (Cocoon) ClassUtils.newInstance("org.apache.cocoon.Cocoon");
c.enableLogging( getCocoonLogger() );
c.setLoggerManager( getLoggerManager() );
c.contextualize(this.appContext);
c.compose(getParentComponentManager());
if (this.enableInstrumentation) {
c.setInstrumentManager(getInstrumentManager());