'Get the environment as a dict, only user-allowed keys.'

def user_env_as_dict(self):

    return {env_fmt.RESOURCE_REGISTRY: self.registry.as_dict(), env_fmt.PARAMETERS: self.params, env_fmt.PARAMETER_DEFAULTS: self.param_defaults, env_fmt.EVENT_SINKS: self._event_sinks}
