Function getUriFromSource