public void delete(ConstructionZoneNode zone) {
   Node n = zone.getNode();
   for (Relationship rel : n.getRelationships()) {
     rel.delete();
   }
   n.delete();
 }
 public ConstructionZoneNode add(CuboidRegion region, AccessType accessType) {
   Vector min = region.getMinimumPoint();
   Vector max = region.getMaximumPoint();
   Node n = graph.createNode(PlotNode.plotLabel(), ConstructionZoneNode.label());
   n.setProperty(ConstructionZoneNode.ID_PROPERTY, nextId());
   ConstructionZoneNode zone = new ConstructionZoneNode(n);
   zone.setAccessType(accessType);
   zone.setMinX(min.getBlockX());
   zone.setMinY(min.getBlockY());
   zone.setMinZ(min.getBlockZ());
   zone.setMaxX(max.getBlockX());
   zone.setMaxY(max.getBlockY());
   zone.setMaxZ(max.getBlockZ());
   return zone;
 }
 public Iterable<ConstructionZoneNode> findAll() {
   return NodeHelper.makeIterable(
       graph.findNodes(ConstructionZoneNode.label()), ConstructionZoneNode.class);
 }