added optional possibility to inject a container class to the server's context