}
final FunctionArgument[] args = new FunctionArgument[count];
for (int i = 0; i < args.length; i++)
{
final int pos = infinite ? 0 : i;
args[i] = new FunctionArgument();
args[i].Description = functionDescription.getParameterDescription(pos, defaultLocale);
args[i].Name = functionDescription.getParameterDisplayName(pos, defaultLocale);
args[i].IsOptional = !functionDescription.isParameterMandatory(pos);
}
return args;