Extracted the configuration of the container, so that it could be also used with an existing container instance