// find typeadapter
ConfigTypeAdapter customRep = config.lookupTypeAdapter(classField.getType());
if (customRep != null) {
Object serialized = customRep.serialize(value, config, classField);
cnode.put(fieldAnno.name(), serialized);
} else {
throw new ConfigurationException("Corresponding 'writer' was not found for field " + fieldAnno.name());
}