refactor getResourceFromUri: separate common code to a new private method
refactor getResourceFromUri: separate common code to a new private method

fekaputra/Skosmos,fekaputra/Skosmos,fekaputra/Skosmos,fekaputra/Skosmos