function dispatch($request)
 {
     $path = $request->getUriPath();
     if ($path == '/') {
         return;
     }
     if (!($document = lmbCmsDocument::findByUri($path))) {
         return;
     }
     if (!$document->getIsPublished()) {
         if (lmbToolkit::instance()->isWebAppDebugEnabled()) {
             throw new lmbException('Page not published');
         } else {
             return;
         }
     }
     return array('controller' => 'document', 'action' => 'item', 'id' => $document->getId());
 }