currentRepaintManagers = new HashMap();
currentRepaintManagers = new WeakHashMap();
  public static RepaintManager currentManager(Component component)  {    if (currentRepaintManagers == null)      currentRepaintManagers = new HashMap();    ThreadGroup threadGroup = Thread.currentThread().getThreadGroup();    RepaintManager currentManager =      (RepaintManager) currentRepaintManagers.get(threadGroup);    if (currentManager == null)      {        currentManager = new RepaintManager();        currentRepaintManagers.put(threadGroup, currentManager);      }    return currentManager;  }