generateString(logger, 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 " + params[i].getName()
+ " not present: " + template);
}
}