public static function createLayoutFactoryBuilder()
    {
        $builder = new LayoutFactoryBuilder(
            new ExpressionProcessor(
                new ExpressionLanguage(),
                new ExpressionEncoderRegistry(
                    [
                        'json' => new JsonExpressionEncoder(new ExpressionManipulator())
                    ]
                )
            )
        );

        $builder->addExtension(new CoreExtension());

        return $builder;
    }