protected function _shim_getEventDom($area, $eventName, $obsName,
            $type = null, $class = null, $method = null) {
        $dom = new DOMDocument('1.0');
        $config = $dom->createElement('config');
        $observers = $config
                ->appendChild($dom->createElement($area))
                ->appendChild($dom->createElement('events'))
                ->appendChild($dom->createElement($eventName))
                ->appendChild($dom->createElement('observers'));
        $observer = $dom->createElement($obsName);
        if ($class && $method) {
            if ($type) {
                $observer->appendChild($dom->createElement('type', $type));
            }
            $observer->appendChild($dom->createElement('class', $class));
            $observer->appendChild($dom->createElement('method', $method));
        }
        $observers->appendChild($observer);
        $dom->appendChild($config);
        return $dom;
    }