private <T> void addToExtraIfCan(Object obj, CFMappingDef<T> cfMapDef, HColumn<String, byte[]> col)
throws SecurityException, IllegalArgumentException, IllegalAccessException,
InvocationTargetException {
Method meth = cfMapDef.getAnonymousPropertyAddHandler();
if (null == meth) {
throw new IllegalArgumentException(
"Object type, "
+ obj.getClass()
+ ", does not have a property named, "
+ col.getName()
+ ". either add a setter for this property or use @AnonymousPropertyHandler to annotate a method for handling anonymous properties");
}
meth.invoke(obj, col.getName(), cfMapDef.getAnonymousValueSerializer()
.fromBytes(col.getValue()));
}