code: public static <T> T readObjectFromFile(String filename) throws IOException,
    ClassNotFoundException {
      return ErasureUtils
      .<T> uncheckedCast(readObjectFromFile(new File(filename)));
    }
docs: Read an object from a stored file.
  
  @param filename
  The filename of the object to be retrieved
  @throws IOException
  If file cannot be read
  @throws ClassNotFoundException
  If reading serialized object fails
  @return The object read from the file.