public static function from(Queries\IQuery $query, IExpressionProcessor $expressionProcessor)
    {
        if ($query instanceof Queries\IRequestQuery) {
            return new RequestQueryProcessor($expressionProcessor, $query);
        } elseif ($query instanceof Queries\IOperationQuery) {
            return new OperationQueryProcessor($expressionProcessor, $query);
        }
    }