Fixing DS-898: Resource Dispatching in rest resources does not consider ...

...the last parts of the URL