code: void persistDom(String name, @Nullable String dom) {
  		try {
  			Files.write(Strings.nullToEmpty(dom), new File(doms, name + ".html"), Charsets.UTF_8);
  		} catch (IOException e) {
  			LOG.warn("Could not save dom state for {}", name);
  			LOG.debug("Could not save dom state", e);
  		}
  	}
docs: Save the dom to disk.
  
  @param name
  statename
  @param dom
  the DOM as string