Object (@NotNull Object o, @Nullable Object context, @Nullable SerializationFilter filter) { Element result = new Element(name); @SuppressWarnings("unchecked") List<String> list = (List<String>)o; if (list.isEmpty()) { return result; } for (String item : list) { result.addContent(new Element("item").setAttribute("value", JDOMUtil.removeControlChars(item))); } return result; }