HttpRequestDTO httpRequestDTO = objectMapper.readValue(jsonHttpRequest, HttpRequestDTO.class);
if (httpRequestDTO != null) {
httpRequest = httpRequestDTO.buildObject();
}
} else {
ExpectationDTO expectationDTO = objectMapper.readValue(jsonHttpRequest, ExpectationDTO.class);
if (expectationDTO != null) {
httpRequest = expectationDTO.buildObject().getHttpRequest();
}
}
} catch (IOException ioe) {
logger.info("Exception while parsing response [" + jsonHttpRequest + "] for http response httpRequest", ioe);
}