'Dispatch the request.
Returns the routed WSGI app\'s response or defers to the extended
application.'

@staticmethod
@webob.dec.wsgify(RequestClass=wsgi.Request)
def _dispatch(req):

    match = req.environ['wsgiorg.routing_args'][1]
    if (not match):
        return req.environ['extended.app']
    app = match['controller']
    return app
