privatevoid check() {
if (globalId.length > Xid.MAXGTRIDSIZE) {
thrownew IllegalStateException("Global id is too long: " + toString());
}
if (branchId.length > Xid.MAXBQUALSIZE) {
thrownew IllegalStateException("Branch id is too long: " + toString());
}
}