if (XMLGregorianCalendar.class.isAssignableFrom(source)) {
if (Calendar.class.isAssignableFrom(target)) {
return new Converter() {
public <T> T convert(Object source, Class<T> target) throws Exception {
XMLGregorianCalendar calendar = (XMLGregorianCalendar) source;
return (T) calendar.toGregorianCalendar();
}
};
}
if (Date.class.isAssignableFrom(target)) {
return new Converter() {