} else {
buffer.append("()");
ExpressionRenderer.render(buffer, expression);
}
} else if (expNode instanceof IdempotentConsumerDefinition) {
IdempotentConsumerDefinition idempotentConsume = (IdempotentConsumerDefinition)expNode;
buffer.append("(");
ExpressionRenderer.render(buffer, expression);
buffer.append(", ");
IdempotentRepository repository = idempotentConsume.getMessageIdRepository();
if (repository instanceof FileIdempotentRepository) {
// TODO need to be improved
buffer.append("FileIdempotentRepository.fileIdempotentRepository()");
} else if (repository instanceof MemoryIdempotentRepository) {
buffer.append("MemoryIdempotentRepository.memoryIdempotentRepository()");
}
buffer.append(")");
if (!idempotentConsume.isEager()) {
buffer.append(".eager(false)");
}
} else if (expNode instanceof LoopDefinition) {
if (expression instanceof ConstantExpression) {