try {
formatInstanceCreator.setIndex(index);
format.visit(formatInstanceCreator, this);
} catch (FormatVisitorException e) {
// We don't expect any exceptions, but just in case...
throw new ExtendedRuntimeException(
exceptionLocalizer.format("unexpected-exception"),
e);
}
formatInstance = (FormatInstance) formatContextContainer.get(index);
}