public void performGeneration(Event startEvent, Event endEvent) throws SAXException {
newObjectModel.markLocalContext();
newObjectModel.putAt(ObjectModel.PARAMETERS_PATH, new ParametersMap(parameters));
newObjectModel.put(ObjectModel.NAMESPACE, namespaces);
XMLConsumer consumer = new AttributeAwareXMLConsumerImpl(new RedundantNamespacesFilter(this.xmlConsumer));
newObjectModel.putAt("cocoon/consumer", consumer);
Invoker.execute(consumer, this.newObjectModel, new ExecutionContext(this.definitions, this.scriptManager,
this.manager), null, namespaces, startEvent, null);