JAMES-1615 Allow ResourceLocator to throw Exception - contibuted by Erwan Guyomarc'h