protected function writer() { if (empty($this->writer)) { $this->writer = $this->factory()->writer(); } return $this->writer; }