Small refactor of Resource.getResourcePath (removing of String sum)