why do you inject the container here instead of the service itself?