Object o = map.get(key);
String fallbackKey = key;
while (o == null && fallbackColors.containsKey(fallbackKey)) {
fallbackKey = fallbackColors.get(fallbackKey);
o = map.get(fallbackKey);
<BUG>}
if (o instanceof Integer) return ((Integer)o).intValue();</BUG>
if (o instanceof Float || o instanceof Double) return ((Long)o).intValue();
return null;
}

Object o = map.get(key);
String fallbackKey = key;
while (o == null && fallbackColors.containsKey(fallbackKey)) {
fallbackKey = fallbackColors.get(fallbackKey);
o = map.get(fallbackKey);
}
return o;
}
public Integer getCurrentColor(String key) {
Object o = getColorObject(key);
if (o instanceof Integer) return ((Integer)o).intValue();
if (o instanceof Float || o instanceof Double) return ((Long)o).intValue();
return null;
}
