// using Latin1 allows the length() method to return the exact bytes
String bufString = new String(buf, 0, bufIndex, "iso-8859-1");
state.pushResolved(query, flags.toString(), bufString, uri);
ResolvedHttpResponse r = new ResolvedHttpResponse(conn, new ByteArrayInputStream(buf, 0, bufIndex));
return r;
} catch (java.io.IOException e) {
// There was a communication error
log.warn("Failed XRI lookup from " + uri.toString()
+ ". IOException " + e);