answer = exchange.getIn().getMandatoryBody();
} else {
answer = exchange.getIn().getMandatoryBody(getEntityType());
}
} catch (InvalidPayloadException e) {
throw new InvalidPayloadRuntimeException(exchange, getEntityType(), e.getCause());
}
if (answer == null) {
throw new InvalidPayloadRuntimeException(exchange, getEntityType());
} else {
return answer;
}
}
};