private static Class<?> readClass(DataInput di) throws IOException {
    int len = di.readInt();
    byte[] bytes = new byte[len];
    di.readFully(bytes);
    String className = new String(bytes); // use default decoder
    Class<?> result = null;
    try {
      result = InternalDataSerializer.getCachedClass(className); // see bug 41206
    } catch (ClassNotFoundException ignore) {
    }
    return result;
  }
Reads a class name from the given input stream, as written by writeClass, and loads the class.

@return null if class can not be loaded; otherwise loaded Class
geode-core/src/main/java/org/apache/geode/internal/cache/persistence/DiskInitFileParser.java