I have two resources:
Both have different permissions associated with them.
I want to access targetUri
but access depends on which of the two resources has a lower index on the resource list.
PathMatcher should prefer overloaded resources- with less brackets in the uri.
I attach a diff with fixed PathMatcher and a unit test.