@Override
  public void serialize(@NotNull Object bean, @NotNull Element parent, @Nullable SerializationFilter filter) {
    Object value = accessor.read(bean);
    if (value == null) {
      return;
    }

    String stringValue;
    if (converter == null) {
      stringValue = XmlSerializerImpl.convertToString(value);
    }
    else {
      stringValue = converter.toString(value);
      if (stringValue == null) {
        return;
      }
    }

    org.jdom.Attribute attribute = new org.jdom.Attribute(true, name, stringValue, Namespace.NO_NAMESPACE);
    parent.setAttribute(attribute);
  }
@Override
  public void serialize(@NotNull Object bean, @NotNull Element parent, @Nullable SerializationFilter filter)