I would copy the result of this call into $this->environment