try {
final String decompileScript = (String) factory.call(action);
final WebResponseData wrd = new WebResponseData(decompileScript.getBytes(), response.getStatusCode(),
response.getStatusMessage(), response.getResponseHeaders());
return new WebResponseImpl(wrd, response.getRequestSettings().getUrl(),
response.getRequestSettings().getHttpMethod(), response.getLoadTime());
}
catch (final Exception e) {
LOG.warn("Failed to decompress JavaScript response. Delivering as it.", e);
}