if (customRep != null) {
try {
Object value = customRep.deserialize(serialized.get(fieldAnno.name()), config, classField);
// set using a setter, exception is when failIfNotPresent is false and there were no value
if (value != null || fieldAnno.failIfNotPresent())
PropertyUtils.setSimpleProperty(confObj, classField.getName(), value);
} catch (Exception e) {
throw new ConfigurationException("Error while reading configuration field " + fieldAnno.name(), e);
}