protected static int getNextByteMask(final int mask) {
    return getNextBitMask(mask, (Byte.MAX_VALUE) + 1);
  }
Get the next bit mask position while checking that the value should not exceed maximum byte
value.
geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionMessage.java