protected function getStackFactory() { if (is_null($this->stackFactory)) { $this->stackFactory = $this->profileManager->getStackFactory(null); } return $this->stackFactory; }