cglib/src/main/java/net/sf/cglib/beans/BeanMap.java
public static BeanMap create(Object bean) {
        Generator gen = new Generator();
        gen.setBean(bean);
        return gen.create();
    }
public static BeanMap create(Object bean) {
        Generator gen = new Generator();
        gen.setBean(bean);
        return gen.create();
    }
Helper method to create a new <code>BeanMap</code>.  For finer
control over the generated instance, use a new instance of
<code>BeanMap.Generator</code> instead of this static method.
@param bean the JavaBean underlying the map
@return a new <code>BeanMap</code> instance