LPS-41851 Shorten URL only in case of public servlet mappings
LPS-41851 Source formatting