setBeanClass(bean.getClass());
if (!customPropertyDescriptors) setBeanClass(bean.getClass());
    public void setBean(Object bean) {        this.bean = bean;        setBeanClass(bean.getClass());        if (bean != null)            readBean();    }