Translate from javascript to rules DSL

I think you’d find this useful

If you can build the complete name string that you want, you can fetch it direct without rummaging in Groups at all.