} else if (dto.getDataType() == OutboundDataType.INSIGHT) {
SobaMessageResponseDTO responseDTO =
objectMapper.readValue(dto.getPayload(), SobaMessageResponseDTO.class);
outboundClient.putInsightMessage(responseDTO);
} else {
throw new OutboundStorageException("The received OutboundConfigurationWithPayloadDTO does not " +
"specify a valid dataType. Was " + dto.getDataType() +
" but was expecting one of [RAW, PROCESSED, or Insight]");
}
} catch (Exception e) {
logger.error("Unable to send payload outbound", e);