private void populateMap(Object bean) {
        Class<?> clazz = bean.getClass();
        Set<MethodInfo> methodInfos = getGetterMethodInfo(clazz);

        if (CollectionUtils.isNotEmpty(methodInfos)) {
            for (MethodInfo methodInfo : methodInfos) {
                try {
                    Object result = methodInfo.getMethod().invoke(bean, (Object[]) null);
                    if (result != null) {
                        this.map.put(methodInfo.getFieldName(), wrap(result));
                    }
                } catch (Exception ignored) {
                }
            }
        }
    }
@author Robert HG (254963746@qq.com) on 12/28/15.
lts-core/src/main/java/com/github/ltsopensource/json/JSONObject.java