code: @Override
    public <T> T publish(Class<T> beanType, Object id, Transaction transaction) {
      methodCalls.add(MethodCall.of(PUBLISH).with("beanType", beanType).with("id", id));
      return !persistPublish ? null : publish.publish(beanType, id, transaction);
    }
docs: -- publish and restore ---------------------------