static <T extends Identifiable> boolean exists(List<T> list, String id) {
    return list.stream().anyMatch(o -> o.getId().equals(id));
  }
Gets the identifier uniquely identifying this Object instance.
<p>

@return an identifier uniquely identifying this Object.
geode-common/src/main/java/org/apache/geode/lang/Identifiable.java