String pp = a.getUIClassID(); ComponentUI p = (ComponentUI) get(pp); if (p == null) getUIError("failed to locate UI:" + pp); return p;
String classId = target.getUIClassID (); Class cls = getUIClass (classId); if (cls == null) { getUIError ("failed to locate UI class:" + classId); return null; }  Method factory;  try { factory = cls.getMethod ("createUI", new Class[] { JComponent.class } ); } catch (NoSuchMethodException nme) { getUIError ("failed to locate createUI method 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;  }