public int put(Object processor) {
    int id;
    final Object obj;
    if (useWeakRefs) {
      obj = new WeakReference<>(processor);
    } else {
      obj = processor;
    }
    do {
      id = getNextId();
    } while (map.putIfAbsent(id, obj) != null);
    Assert.assertTrue(id > 0);
    return id;
  }
Save the processor in this keeper, generate an id for the processor, and return that id so it
can be used to retrieve the processor later. This keeper keeps a weak reference to the
processor.

@param processor the processor to keep
@return the unique id for processor
geode-core/src/main/java/org/apache/geode/distributed/internal/ProcessorKeeper21.java