}
private AssertionError[] assertResponse(RestMessageExchange messageExchange, RestRepresentation.Type type) {
List<AssertionError> result = new ArrayList<AssertionError>();
QName responseBodyElementName = getResponseBodyElementName(messageExchange);
RestRequestInterface restRequest = messageExchange.getRestRequest();
boolean asserted = false;
for (RestRepresentation representation : restRequest.getRepresentations(type,
messageExchange.getResponseContentType())) {
if (representation.getStatus().isEmpty()
|| representation.getStatus().contains(messageExchange.getResponseStatusCode())) {
SchemaType schemaType = representation.getSchemaType();
if (schemaType != null && representation.getElement().equals(responseBodyElementName)) {