try { return (ComponentUI) factory.invoke (null, new Object[] { target }); } catch (java.lang.reflect.InvocationTargetException ite) { getUIError ("InvocationTargetException ("+ ite.getTargetException() +") calling createUI(...) on " + cls.toString ()); return null;  } catch (Exception e) { getUIError ("exception calling createUI(...) on " + cls.toString ()); return null; } }
  public ComponentUI getUI(JComponent a)  {    String pp = a.getUIClassID();    ComponentUI p = (ComponentUI) get(pp);    if (p == null)      getUIError("failed to locate UI:" + pp);    return p;  }