Cocoon c = (Cocoon) ClassUtils.newInstance("org.apache.cocoon.Cocoon");
final String rootlogger = getInitParameter("cocoon-logger");
if (rootlogger != null) {
c.enableLogging(new LogKitLogger(this.logKitManager.getLogger(rootlogger)));
} else {
c.enableLogging(new LogKitLogger(log));
}
c.contextualize(this.appContext);
c.compose(getParentComponentManager());
c.setLogKitManager(this.logKitManager);
if (this.enableInstrumentation) {