private void removeExpired() {
    while (true) {
      WeakLockReference ref = (WeakLockReference)queue.poll();
      if (ref == null) {
        break;
      }
      map.remove(ref.className, ref);
    }
  }
private void removeExpired()