public void setHints(String fieldKey, Hint... hints) {
if (hintsByFieldKey == null) {
hintsByFieldKey = new HashMap<String, Hints>();
}
Hints fieldHints = hintsByFieldKey.get(fieldKey);
if (hints.length > 0 && fieldHints == null) {
fieldHints = new Hints();
hintsByFieldKey.put(fieldKey, fieldHints);
}
for (Hint hint : hints) {
fieldHints.set(hint);
}
}