public void bubbleApplyTemplates(Node node, Event event) {
if (principleEventListener) {
Controller.relayEvent(node, event); // make a call to this method for other instances
}
NodeInfo eventNode = ((HTMLDocumentWrapper)config.getHostPage()).wrap(node);
SequenceIterator bubbleElements = eventNode.iterateAxis(Axis.ANCESTOR, NodeKindTest.ELEMENT);
Controller controller = stylesheet.newTransformer();
try {
controller.importControllerSettings(localController);
XPathContext ruleContext = controller.newXPathContext();
Mode matchedMode = getModeFromEvent(event);