UPDATE: New methods for creating the container. Support for global configuration with validation