Factory to access configuration values regardless of the application type (Console/Web).