// Process the response from the server.
HttpEntity entity = response.getEntity();
StatusLine statusLine = response.getStatusLine();
if (entity == null)
{
throw new SardineException("No entity found in response", statusLine.getStatusCode(),
statusLine.getReasonPhrase());
}
try
{
return this.getMultistatus(entity.getContent());
}
catch(IOException e) {
// JAXB error unmarshalling response stream
throw new SardineException(e.getMessage(), statusLine.getStatusCode(), statusLine.getReasonPhrase());
}
}