/src/main/java/org/htmlunit/html/XmlSerializer.java
IOUtils.copyLarge( is, fos) ; try ( OutputStream fos = Files.newOutputStream( file.toPath( ) ) ) {
try ( OutputStream fos = Files.newOutputStream ( file.toPath ( ) ) ) { IOUtils.copyLarge ( is, fos ) ;
if (enclosedPage != null) { if (enclosedPage.isHtmlPage()) { new XmlSerializer().save((HtmlPage) enclosedPage, file, true); } else { try (InputStream is = enclosedPage.getWebResponse().getContentAsStream()) { <extra_id_0> } } } } srcAttr.setValue(file.getParentFile().getName() + FILE_SEPARATOR + file.getName()); return map;