code: public static Object loadAll(final PersistenceStoreType storeType) {
  
          Object ret = null;
          try {
  
              File file = new File(persistenceStorePath + File.separator + storeType);
  
              log.info("aws-mock: try to load objects from {}", file.getAbsolutePath());
  
              ObjectInputStream in = new ObjectInputStream(new FileInputStream(file));
              ret = in.readObject();
              in.close();
  
          } catch (FileNotFoundException e) {
              // no saved file to load from
              log.warn("no saved file to load from: {}", e.getMessage());
              return null;
          } catch (IOException e) {
              // failed to load from the saved file
              log.warn("failed to load from the saved file: {}", e.getMessage());
              return null;
          } catch (ClassNotFoundException e) {
              log.error("ClassNotFoundException caught during loading object from file: "
                      + e.getMessage());
          }
          return ret;
  
      }
docs: Load object from the binary file defined as filename in property.
  
  @param storeType the store type
  @return the loaded object.