public function toActionCaller()
    {
        $actionCaller = new ActionCaller();

        $action = $this->getAction();
        if ($action instanceof Closure)
        {
            $actionCaller->byClosure($action);
        }
        else if (is_callable($action))
        {
            $actionCaller->byCallable($action);
        }
        else
        {
        }

        return $actionCaller;
    }