Possibly always call cfg.resolve on incoming configuration items so that environment variables are resolved automatically.