}
XmlJavaTypeAdapter xmlJavaTypeAdapter = getXmlJavaTypeAdapter(type, annotations);
if (xmlJavaTypeAdapter != null) {
try {
XmlAdapter xmlAdapter = xmlJavaTypeAdapter.value().newInstance();
return xmlAdapter.marshal(obj);
} catch (Exception e) {
if (logger.isDebugEnabled()) {
logger.debug("Could not marshal {} using {} due to exception:", new Object[] {
obj, xmlJavaTypeAdapter.value().getName(), e});
}