The ContainerBlock will not help here to compose a block response (the solution can work ...). I will alter the code to be able to return differents blocks instance.