contentStream = (InputStream)data;
IOUtils.copy(contentStream, writer, "UTF-8");
html = writer.toString();
}
} catch (IOException e) {
throw new ClientServicesException(e);
} finally{
try {
if (contentStream != null) {
contentStream.close();
}
} catch (IOException e) {
throw new ClientServicesException(e);
}
}
return html;
}