public static synchronized Long createId(final Long baseId) {
    final long delta = ((baseId != null ? baseId : 0l) - ID_SEQUENCE.get());
    long newId = (delta > 0 ? ID_SEQUENCE.addAndGet(delta) : createId());
    return newId;
  }
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