Color (String name, Color defaultValue) { String prop = getString(name); if (prop != null) { try { return Color.decode(prop); } catch (Exception ex) { // return defaultValue } } return defaultValue; }