/**
  * {@inheritdoc}
  * @return TransactionInterface
  */
 public function getObjectPrototype()
 {
     $objectPrototype = parent::getObjectPrototype();
     if (!$objectPrototype instanceof TransactionInterface) {
         throw new RuntimeException(sprintf('Object prototype must be an instance of "%s": "%s" given', TransactionInterface::class, is_object($objectPrototype) ? get_class($objectPrototype) : gettype($objectPrototype)));
     }
     return $objectPrototype;
 }