setStringControlsFromMap

Sets string controls from a flat map of key → value pairs.

Invalid values (rejected by StringControlIfc.isAllowed) are caught per entry, logged as warnings, and skipped — the remaining valid entries continue to be applied.

Return

the number of controls successfully set