code: public static List<FormInput> deserializeFormInputs(File dir) {
  
  		List<FormInput> deserialized = new ArrayList<>();
  		final File in = new File(dir, FORMS_JSON_FILE);
  
  		if (in.exists()) {
  			LOGGER.info("Reading trained form inputs from " + in.getAbsolutePath());
  			Gson gson = new GsonBuilder().create();
  
  			try {
  				deserialized =
  						gson.fromJson(FileUtils.readFileToString(in, Charset.defaultCharset()),
  								new TypeToken<List<FormInput>>() {
  								}.getType());
  
  			} catch (JsonSyntaxException | IOException e) {
  				LOGGER.error(e.getMessage(), e);
  			}
  		}
  
  		return deserialized;
  
  	}
docs: Serializes form inputs and writes the data to the output directory to be used by future
  non-training crawls.
  
  @param dir The output directory for the form input data.
  @return The list of inputs