Adding constructor with EnvironmentType
Lazy load environment type