return responseBuilder.build();
}
private byte[] createOfflineSite(String baseUri, String targetUri,
String rootLinkPrefix, List<String> formatExtensions) throws IOException {
PathNode baseNode = createFileHierarchy(baseUri, baseUri, targetUri, rootLinkPrefix,
formatExtensions);
PathNode allHostsNode = createFileHierarchy(Constants.ALL_HOSTS_URI_PREFIX+"/",
baseUri,targetUri, rootLinkPrefix, formatExtensions);
PathNode rootNode = new MultiPathNode(allHostsNode, baseNode);
try {
return ZipCreationUtil.createZip(rootNode);
} catch (IOException ex) {
throw new WebApplicationException(ex);
}