Use the dest variable instead of folderpath to specify the UUID of an item when there are multiple documents with the same name.
Instead of this syntax:
http://hostname:portNumber/workspace/browse/get/folderPath/
Use this syntax:
http://hostname:portNumber/workspace/browse/get?dest=UUID