@SuppressWarnings("unchecked")
protected List<String> parseResponse(HttpResponse response) throws IOException, JAXBException {
InputStream contentStream = response.getEntity().getContent();
try {
ListDataNode listDataNode = (ListDataNode) unmarshaller.unmarshal(contentStream);
List<String> hosts = new ArrayList<String>();
for (String host : listDataNode.getDataNodes()) {
hosts.add(host.trim());
}
return hosts;
} finally {
try {