*
* @throws CayenneRuntimeException if source URI does not resolve to a valid map files
*/
public DataMap loadDataMap(String uri) throws CayenneRuntimeException {
// configure resource locator
ResourceFinder locator = createResourceFinder();
URL url = locator.getResource(uri);
if (url == null) {
throw new CayenneRuntimeException("Can't find data map " + uri);
}
InputStream in;