public void set(Object bean, Object value) {
if (bean instanceof PropertyMapPropertyAccess) {
PropertyMapPropertyAccess bag = (PropertyMapPropertyAccess) bean;
bag.setFrom(this, value);
} else {
throw new BeanIsNotAPropertyBagException("bean is a "+bean.getClass().getName());
}
}