Checking if batch uri already has resource name