(ProcessingInstruction) ((ProcessingInstruction) value)
.clone();
element.addContent(pi);
}
else if (value instanceof Comment) {
Comment comment = (Comment) ((Comment) value).clone();
element.addContent(comment);
}
else {
String string = (String) TypeUtils.convert(value, String.class);
if (string != null && !string.equals("")) {