public function findInCollection($object, $method, $id, $class = null)
    {
        foreach ($object->$method() as $el) {
            if ($el->getId() === $id || $el->getUuid() === $id) {
                return $el;
            }
        }

        if ($class) {
            return $this->_om->getObject(['id' => $id], $class);
        }
    }