code: @SuppressWarnings("unchecked")
      public static <T> T load(File file) {
          try {
              FileInputStream fis = new FileInputStream(file);
              ObjectInputStream inStream = 
                  new ObjectInputStream(new BufferedInputStream(fis));
              T object = (T) inStream.readObject();
              inStream.close();
              return object;
          } catch (IOException ioe) {
              throw new IOError(ioe);
          } catch (ClassNotFoundException cnfe) {
              throw new IOError(cnfe);
          }
      }
docs: Loads a serialized object of the specifed type from the file.
  
  @param file the file from which a mapping should be loaded
  
  @return the object that was serialized in the file