{
throw new MalformedURLException("Server response code " + statusCode);
}
InputStream input = get.getResponseBodyAsStream();
DataBuffer buffer = new DataBuffer();
byte[] data = buffer.loadInputStream(input).toByteArray();
return createDocument(data, charset, channelClazz, itemClazz);
}
finally
{
if (get != null)