StandardRegionDigraph digraph = new StandardRegionDigraph(bundleContext, threadLocal);
Map json = (Map) JsonReader.read(in);
Map<String, Collection<Number>> regions = (Map<String, Collection<Number>>) json.get(REGIONS);
for (Map.Entry<String, Collection<Number>> rmap : regions.entrySet()) {
String name = rmap.getKey();
Region region = digraph.createRegion(name);
for (Number b : rmap.getValue()) {
region.addBundle(b.longValue());
}
}
List<Map<String, Object>> edges = (List<Map<String, Object>>) json.get(EDGES);
for (Map<String, Object> e : edges) {
String tail = (String) e.get(TAIL);