class MapUtil {

    public static Object mapToObject(Map<String, Object> map, Class<?> beanClass) throws Exception {<FILL_FUNCTION_BODY>}
}

        if (map == null){
            return null;
        }
        Object obj = beanClass.newInstance();
        BeanUtils.populate(obj, map);
        return obj;
    
<no_super_class>