code: public static SynthStyle updateStyle(SeaGlassContext context, SeaglassUI ui) {
          SynthStyle newStyle = SynthLookAndFeel.getStyle(context.getComponent(), context.getRegion());
          SynthStyle oldStyle = context.getStyle();
  
          if (newStyle != oldStyle) {
  
              if (oldStyle != null) {
                  oldStyle.uninstallDefaults(context);
              }
  
              context.setStyle(newStyle);
              if (newStyle instanceof SeaGlassStyle) {
                  ((SeaGlassStyle) newStyle).installDefaults(context, ui);
              }
          }
  
          return newStyle;
      }
docs: A convience method that will reset the Style of StyleContext if
  necessary.
  
  @param  context the SynthContext corresponding to the current state.
  @param  ui      the UI delegate.
  
  @return the new, updated style.