fixed BeanAdapter example