Convert a JavaBean to key/value Map with nested name using commons-beans BeanUtils
问题 I start using BeanUtils to convert a Properties files to a JavaBean. Using BeanUtils.populate, I'm able to do this nicely. But I can achieve the retro conversion from the JavaBean to the Map correctly (only simple values are store). See this sample based on the Employee Class form the BeanUtils documentation. import org.apache.commons.beanutils.BeanUtils; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TreeMap; public class