for (BoundaryContext context : contexts) {
BoundaryPath path = context.getPath();
GridIndex first = path.getIndex(0);
Sentry sentry = clusters.find(first);
Boundary boundary = boundariesByCluster.get(sentry);
if (boundary == null) {
boundary = new Boundary();
boundariesByCluster.put(sentry, boundary);