import net.sf.sahi.response.HttpResponse;
public class Substituter {
public HttpResponse replaceHttps(final HttpRequest request) {
HttpResponse response = new RemoteRequestProcessor().processHttp(request);
byte[] bytes = response.data();
String data = new String(bytes);
data = data.replaceAll("https", "http");
response.setData(data.getBytes());
return response;