i think you should pass this parameter to the constructor rather than pulling it from the container.