public static <T> boolean isSetIdMethodAvailable(final Object identifiableObject, final T id) {
    return (identifiableObject != null && ClassUtils.hasMethod(identifiableObject.getClass(),
        "setId", (id == null ? Object.class : id.getClass())));
  }
The IdentifierUtils class is a utility class for working with Objects having identifiers
<p>

@since GemFire 8.0
geode-web-api/src/main/java/org/apache/geode/rest/internal/web/util/IdentifiableUtils.java