private static boolean isSimpleReturnType(Method method, Object object) {
        Class<?> returnType = getActualReturnType(method, object);
        return returnType.equals(Integer.TYPE) || returnType.equals(Integer.class) || returnType.equals(Double.TYPE)
                || returnType.equals(Double.class)
                || returnType.equals(Float.TYPE) || returnType.equals(Float.class) || returnType.equals(String.class);
    }