private function editorTypeHandle(Article $a) { if ($a === null) { throw new Exceptions\NullPointerException("Argument Event cannot be null"); } try { $editor = null; if ($this->getUserService() !== null) { $id = $this->getMixId($a->getEditor()); if ($id !== null) { $editor = $this->getUserService()->getUser($id, false); } } $a->setEditor($editor); return $a; } catch (\Exception $ex) { $this->logError($ex->getMessage()); throw new Exceptions\DataErrorException($ex->getMessage(), $ex->getCode(), $ex->getPrevious()); } }