New action plan is to do a little research and see if SA supports this directly somehow, and if not to use this strategy but get the engine type out of SA rather than parsing the settings uri.