public static Class<?> readClass(DataInput in) throws IOException, ClassNotFoundException {
    byte typeCode = in.readByte();
    if (typeCode == DSCODE.CLASS.toByte()) {
      String className = readString(in);
      className = processIncomingClassName(className);
      return Class.forName(className);
    } else {
      return StaticSerialization.decodePrimitiveClass(typeCode);
    }
  }
Returns a byte array for use by the calling thread.
The returned byte array may be longer than minimumLength.
The byte array belongs to the calling thread but callers must
be careful to not call other methods that may also use this
byte array.
geode-serialization/src/main/java/org/apache/geode/internal/serialization/StaticSerialization.java