public function insertObjectState(ObjectState $objectState, $groupId) { try { return $this->innerGateway->insertObjectState($objectState, $groupId); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }