|| status.getCode() == HttpStatus.SC_CREATED) {
messageBody = readResponse(httpResponse.getEntity().getContent());
response = new DepositResponse(status.getCode());
response.setLocation(httpResponse.getFirstHeader("Location").getValue());
// added call for the status code.
lastUnmarshallInfo = response.unmarshall(messageBody, new Properties());
}
else {
messageBody = readResponse(httpResponse.getEntity().getContent());
response = new DepositResponse(status.getCode());
response.unmarshallErrorDocument(messageBody);