if (!response.validate(opts)) {
__log.error("MockQuery response doesn't validate. Errors: " + errors + " Request: " + request.toString() + " Response: " + response.toString(), new Exception());
throw new IllegalStateException("MockQuery response doesn't validate.");
}
}
ResponseType response2 = response.getMockQueryResponse();
if (__log.isDebugEnabled()) {
__log.debug("mockQuery result " + response);
}
Exchange answer = Exchange.Factory.newInstance();
{
if (response2.isSetOut()) {
answer.setOut(response2.getOut());
}
if (response2.isSetFault()) {
answer.setFault(response2.getFault());
}
if (response2.isSetFailure()) {
answer.setFailure(response2.getFailure());
}
}
return answer;
} catch (Exception e) {