}
if (!messageDto.isAll()) {
correlation.correlate();
} else {
correlation.correlateAll();
}
} catch (RestException e) {
String errorMessage = String.format("Cannot deliver message: %s", e.getMessage());
throw new InvalidRequestException(e.getStatus(), e, errorMessage);