public void serializePrimitive(S rec, String fieldName, boolean value) {
        serializePrimitive(rec, fieldName, Boolean.valueOf(value));
    }
public void serializePrimitive ( S rec , String fieldName , boolean value ) { serializePrimitive ( rec , fieldName , Boolean . valueOf ( value ) ) ; }
Can be overridden to avoid boxing an int where appropriate