Use Apache Commons BeanUtils: http://commons.apache.org/beanutils/.
An implementation of Map for JavaBeans which uses introspection to get and put properties in the bean:
Map
Note: despite the fact the API returns Map
(since 1.9.0), the actual class for keys in the returned map is java.lang.String