try {
HttpResponse response = client.execute(method);
body = response.getEntity().getContent();
} catch (Throwable t) {
throw new RippleException(t);
}
try {
BufferedReader br = new BufferedReader(
new InputStreamReader(body));
StringBuffer sb = new StringBuffer();
String nextLine = "";
boolean first = true;
while ((nextLine = br.readLine()) != null) {
if (first) {
first = false;
} else {
sb.append('\n');
}
sb.append(nextLine);
}
result = sb.toString();
body.close();
} catch (java.io.IOException e) {
throw new RippleException(e);
}
try {
method.abort();
} catch (Throwable t) {
throw new RippleException(t);
}
solutions.put(stack.push(mc.valueOf(result, XMLSchema.STRING)));
}