public static void release(short id) {
    if (id != NO_MSG_ID) {
      uigen.release(id);
    }
  }
Obtains a message id. Callers of this must call release when finished with the id.

@throws IllegalStateException if all ids have been obtained
geode-core/src/main/java/org/apache/geode/internal/tcp/MsgIdGenerator.java