public function configNodeListeners($uri, array $listeners) {

        if (array_key_exists('listeners', $listeners) && count($listeners['listeners']) > 0) {
            try {
                // echo 'EventDispatcher::configListeners adding eventhandler for ' . $uri . "\r\n";
                $this->logger->addDebug('EventDispatcher::configListeners adding eventhandler for ' . $uri);
                $this->addEventHandler($uri, $listeners['listeners'], true);
            } catch (\Exception $e) {
                //assume the developer has an empty element such as:
                //listeners:
                //with no sub elements, which is allowable
                $this->logger->addError('EventDispatcher::configListeners threw exception adding eventhandler for ' . $uri);
                $this->logger->addError($e->getMessage());
            }
        }
    }