public static function resultFrom($aQuery)
    {
        /** @var \Prooph\ServiceBus\QueryBus $instance */
        $instance = self::getFacadeRoot();
        $ret = null;

        $instance
            ->dispatch($aQuery)
            ->done(function ($result) use (&$ret) {
                $ret = $result;
            }, function () use ($aQuery) {
                throw QueryResultFailed::fromQuery($aQuery, func_get_args());
            });

        return $ret;
    }