public boolean removeReference() {
    boolean lastReference = (references.decrementAndGet() <= 0);
    if (lastReference) {
      manager.endpointNotInUse(this);
    }
    return lastReference;
  }
@return true if this was the last reference to the endpoint
geode-core/src/main/java/org/apache/geode/cache/client/internal/Endpoint.java