docs: protected synchronized void storeBundle(NodePropBundle bundle) throws ItemStateException {
          try {
              ByteArrayOutputStream out =
                  new ByteArrayOutputStream(INITIAL_BUFFER_SIZE);
              binding.writeBundle(out, bundle);
  
              String sql = bundle.isNew() ? bundleInsertSQL : bundleUpdateSQL;
              Object[] params = createParams(bundle.getId(), out.toByteArray(), true);
              conHelper.update(sql, params);
          } catch (Exception e) {
              String msg;
  
              if (isIntegrityConstraintViolation(e)) {
                  // we should never get an integrity constraint violation here
                  // other PMs may not be able to detect this and end up with
                  // corrupted data
                  msg = "FATAL error while writing the bundle: " + bundle.getId();
              } else {
                  msg = "failed to write bundle: " + bundle.getId();
              }
  
              log.error(msg, e);
              throw new ItemStateException(msg, e);
          }
     }