Maybe this will also help. To get the point of execution on server i use the following on my JSF page:
Say i want to navigate to a relative url (a view page of NewPage.xhtml):
So maybe you can use something like:
This would allow you to set somethings only if the path is equivalent to your uat environment.
I hope this helps.