'Look up the action-specific method and its extensions.'

def get_method(self, request, action, content_type, body):

    try:
        if (not self.controller):
            meth = getattr(self, action)
        else:
            meth = getattr(self.controller, action)
    except AttributeError as e:
        with excutils.save_and_reraise_exception(e) as ctxt:
            if ((not self.wsgi_actions) or (action not in ['action', 'create', 'delete', 'update'])):
                LOG.exception('Get    method    error.')
            else:
                ctxt.reraise = False
    else:
        return (meth, self.wsgi_extensions.get(action, []))
    if (action == 'action'):
        mtype = _MEDIA_TYPE_MAP.get(content_type)
        action_name = self.action_peek[mtype](body)
        LOG.debug('Action    body:    %s', body)
    else:
        action_name = action
    return (self.wsgi_actions[action_name], self.wsgi_action_extensions.get(action_name, []))
