String stringValue = value != null ? value.toString() : "";
boolean valid = ("true".equalsIgnoreCase(stringValue) || "false".equalsIgnoreCase(stringValue));
if(!valid) {
errorBuffer.add(object.getType(), new ValueToken(key, new Object[] { true, false } ));
}
return valid;
}