public byte getByte() {
    if (!isBytes()) {
      Assert.assertTrue(false, "expected int part to be of type BYTE, part = " + this);
    }
    if (getLength() != 1) {
      Assert.assertTrue(false,
          "expected int length to be 1 but it was " + getLength() + "; part = " + this);
    }
    final byte[] bytes = getSerializedForm();
    return bytes[0];
  }
Like getString but will also check a cache of frequently serialized strings.
The result will be added to the cache if it is not already in it.
NOTE: only call this for strings that are reused often (like region names).
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/Part.java