if (context == null) context = new ColorPaintContext(value);
if (context == null || !context.getColorModel().equals(cm)) context = new ColorPaintContext(cm,value);
  public PaintContext createContext(ColorModel cm, Rectangle deviceBounds,                                    Rectangle2D userBounds,                                    AffineTransform xform,                                    RenderingHints hints)  {    if (context == null)      context = new ColorPaintContext(value);    return context;  }