public function retrieveEntityOrNull($class_name, $id, $use_cache = true) { try { return $this->retrieve($class_name, $id, $use_cache); } catch (NotFoundException $e) { return null; } }