// if no serializer was configured try to find one dynamically using WSDLJava
// generated metadata
Class cls = value.getClass();
Serializer serializer = getSerializerFromClass(cls, elemQName);
if (serializer != null) {
TypeDesc typedesc = TypeDesc.getTypeDescForClass(value.getClass());
if (typedesc != null) {
QName qname = typedesc.getXmlType();
if (shouldSendType && qname != null) {
writeXMLType = qname;
}
}
serializer.serialize(elemQName, attributes, value, this);