protected function completeMenu(Menu $m) {
		
		if($m->getType() === 'dynamic') {

			// invoke service to build menu entries
			
			Application::getInstance()->getService($m->getServiceId())->appendMenuEntries($m);

			
		}

		foreach($m->getEntries() as $entry) {
			if(($m = $entry->getSubMenu())) {
				$this->completeMenu($m);
			}
		}

	}