public final <E extends T> E read(File file, Object... args) {
    if (file != null && file.exists() && file.length() > 0) {
      try(InputStream in = Files.newInputStream(file.toPath())) {
        return read(in, args);
      } catch (ClassCastException | IOException xany) {
        readError(xany, "error reading " + file);
      }
    }
    return null;
  }
Loads an object from the persistent storage.

@param <E> the class of the object to read
@param file the file to read from
@param args the proxy arguments
@return the object or null if file is null
@throws SerializationProxy.ProxyException in case of low level error
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/properties/Serializer.java