super.put(name, start, value);
} else {
// Determine conversion type from property name
Class type = colorPropertyToClass.get(name);
if (type != null) {
Color fromColor = (Color) javaObject;
Color toColor = fromColor.convert(type);
if (toColor != null) {
Scriptable scriptable = Context.toObject(toColor, start);
scriptable.put(name, start, value);
toColor = toColor.convert(fromColor.getClass());
fromColor.set(toColor);
}
}
}
}