Refactored method names in ContainerFactory to conform with Java conventions.