private static Method getMethod(Class<?> clazz, String name) {
        name = name.substring(0, 1).toUpperCase() + name.substring(1);
        Method method = null;
        try {
            method = clazz.getMethod("get" + name);
        } catch (NoSuchMethodException e) {
            // skip
        } catch (Exception e) {
            throw new ELException("handle ql where error");
        }

        if (method == null) {
            try {
                method = clazz.getMethod("is" + name);
            } catch (NoSuchMethodException e) {
                // skip
            } catch (Exception e) {
                throw new ELException("handle ql where error");
            }
        }

        return method;
    }