@SuppressWarnings("unchecked")
    public BeanDesc getBeanDesc(Object obj){
        if(obj instanceof Map){
            return new MapBeanDescImpl((Map<String, Object>) obj);
        } else {
            return getBeanDesc(obj.getClass());
        }
    }
@ SuppressWarnings ( "unchecked" ) public BeanDesc getBeanDesc ( Object obj ) { if ( obj instanceof Map ) { return new MapBeanDescImpl ( ( Map < String , Object > ) obj ) ; } else { return getBeanDesc ( obj . getClass ( ) ) ; } }
Constructs a bean descriptor out of an Object instance.

@param obj the object to create the descriptor from (the object can also be a Map)
@return a descriptor