LPS-35210 Autocomplete should be enabled by default
LPS-35210 prepare(request) is never invoked for DDM Templates so the variables it injects should not be autocompleted or shown in the palette
LPS-35210 xmlRequest is only available for Journal Templates
LPS-35210 Use template language to determine the right variables will be available for autocomplete
LPS-35210 the getKeys() method in VelocityTemplate was incomplete. It didn't take into account the innerContext which is the one that had the helper variables.

The only reason why this bug had not surfaced yet is that this method was not used anywhere yet. The proof of this is that the (String[]) cast always failed because Java cannot cast an Object array to an String array.
LPS-35210 Allow specifying palette variables based on the template language
LPS-35210 The VelocityTaglib variable is only available in velocity templates
LPS-35210 Rename velocityTaglib#layoutIcon because that is not a valid variable name in either velocity or freemarker.
LPS-35210 SF