private static String getPropertyGetter(CtField field, boolean failover) throws NotFoundException {
        String property = field.getName();
        if (!failover && isBooleanType(field)) {
            return String.format("is%s%s", Character.toUpperCase(property.charAt(0)), property.substring(1));
        } else {
            return String.format("get%s%s", Character.toUpperCase(property.charAt(0)), property.substring(1));
        }
    }
private static String getPropertyGetter ( CtField field , boolean failover ) throws NotFoundException { String property = field . getName ( ) ; if ( ! failover && isBooleanType ( field ) ) { return String . format ( "is%s%s" , Character . toUpperCase ( property . charAt ( 0 ) ) , property . substring ( 1 ) ) ; } else { return String . format ( "get%s%s" , Character . toUpperCase ( property . charAt ( 0 ) ) , property . substring ( 1 ) ) ; } }
Returns the name of the corresponding getter to a properties name and type. The failover is needed to support
both getter name types for boolean properties.