added getResourceUri() method