try {
final Digester d = createDigester();
d.push(new OsmFactory(MapPlugin.getBL(), monitor));
fetchDocument(monitor, d);
monitor.worked(2);
final MapData data = new MapData();
final Map<String, MapNode> lookup = new HashMap<String, MapNode>();
/*
* monitor.setTaskName("Extract nodes"); List<MapNode> nodes = extractNodes(doc,
* lookup); data.setNodes(nodes); monitor.worked(3);
* monitor.setTaskName("Extract ways"); List<MapWay> ways = extractWays(doc, lookup);