public DynamicEntity set(String propertyName, Object value) { DatabaseMapping mapping = getType().getMapping(propertyName); checkSetType(mapping, value); Object currentValue = mapping.getAttributeValueFromObject(this); if (currentValue instanceof ValueHolderInterface) { ((ValueHolderInterface) currentValue).setValue(value); } else { mapping.setAttributeValueInObject(this, value); } return this; }