currentRepaintManagers = new HashMap();
currentRepaintManagers = new WeakHashMap();
  public static void setCurrentManager(RepaintManager manager)  {    if (currentRepaintManagers == null)      currentRepaintManagers = new HashMap();    ThreadGroup threadGroup = Thread.currentThread().getThreadGroup();    currentRepaintManagers.put(threadGroup, manager);  }