generateString(logger, locale, template, params, seenFlags, generated);
// Generate an error if any required parameter was not used somewhere.
for (int i = 0; i < numParams; ++i) {
if (!seenFlags[i]) {
Optional optional = params[i].getAnnotation(Optional.class);
if (optional == null) {
throw error(logger, "Required argument " + i + " not present: "
+ template);
}
}