code: @Override
      public Object getInstanceToSerialize(Object instance) {
          if (this.conversionService.canConvert(instance.getClass(), this.beanType)) {
              return this.conversionService.convert(instance, this.beanType);
          } else {
              return instance;
          }
      }
docs: {@inheritDoc}
  
  Delegates to the configured {@link ConversionService} to potentially convert the instance to the registered bean type.