/** * Provides root node of given data stream. * * @param zip ZIP input stream * @return root node * @throws DocumentException if some error occurs */ private Node getContext(ZipInputStream zip) throws DocumentException { try { return DomUtil.open(getInputStream(zip)); } catch (XmlException e) { throw new DocumentException(e); } }