added code to handle service hint in uri