The SessionFactoryCreator ctor is being invoked with a null instance
of Container for some unknown reason. Make it receive an instance of
Environment, so it works properly.