// Utility class, no public or protected default constructor
}
public static void render(StringBuilder buffer, ErrorHandlerBuilder errorHandler) {
if (errorHandler instanceof DeadLetterChannelBuilder) {
DeadLetterChannelBuilder deadLetter = (DeadLetterChannelBuilder)errorHandler;
buffer.append("errorHandler(deadLetterChannel(\"").append(deadLetter.getDeadLetterUri()).append("\")");
int maxRediliveries = deadLetter.getRedeliveryPolicy().getMaximumRedeliveries();
if (maxRediliveries != 0) {
buffer.append(".maximumRedeliveries(").append(maxRediliveries).append(")");
}
RedeliveryPolicy redelivery = deadLetter.getRedeliveryPolicy();
long redeliverDelay = redelivery.getRedeliverDelay();
if (redeliverDelay != 1000) {
buffer.append(".redeliverDelay(").append(redeliverDelay).append(")");
}
if (redelivery.isLogStackTrace()) {
buffer.append(".logStackTrace(true)");
}
if (deadLetter.getHandledPolicy() != null) {
String handledPolicy = deadLetter.getHandledPolicy().toString();
if (handledPolicy.equals("false")) {
buffer.append(".handled(").append(handledPolicy).append(")");
}
}