Method method = value.getClass().getMethod(
"getSerializer", getSerializerClasses);
if (method != null) {
Serializer serializer = (Serializer) method.invoke(value,
new Object[] {"", value.getClass(), elemQName});
TypeDesc typedesc = TypeDesc.getTypeDescForClass(value.getClass());
if (typedesc != null) {
QName qname = typedesc.getXmlType();
if (qname != null) {
attributes = setTypeAttribute(attributes,
qname);
}
}