class ColorSaver implements ElementTypeAdapter<Color> {

  @Override
  public JsonElement serialize(Color src, JsonSerializationContext context) {
    return context.serialize(FxUtils.toHexString(src));
  }

}