}
public static ReferenceManager createCallBackedManager(ReferenceQueue queue) {
return new ReferenceManager(queue){
@Override
public void removeStallEntries() {
ReferenceQueue queue = getReferenceQueue();
for(;;) {
java.lang.ref.Reference r = queue.poll();
if (r==null) break;
if (r instanceof Reference) {
Reference ref = (Reference) r;
Finalizable holder = ref.getHandler();