LPS-43586 minor optimization to logic
LPS-43586 add tokens to scripting contexts
LPS-43586 src format
LPS-43586 SF