if (throwableInformation != null) {
Throwable throwable = throwableInformation.getThrowable();
if (throwable instanceof ApplicationExceptionInterface) {// NOPMD
final ApplicationExceptionInterface ApplicationExceptionInterface = (ApplicationExceptionInterface) throwable;
toAppendTo.append("[Error code: ");
toAppendTo.append(ApplicationExceptionInterface.getErrorCode() == null ? "%NO_ERROR_CODE%" : ApplicationExceptionInterface.getErrorCode().toString());
toAppendTo.append("] ");
}
}
}