Iterator sii = spatialIndexes.iterator(); while (sii.hasNext()) { SpatialIndex si = (SpatialIndex)sii.next(); if (si != null) { ESRIBoundingBox boundingBox = spatialIndex.getBounds();
for (Iterator sii = spatialIndexes.iterator();sii.hasNext();) { SpatialIndexHandler sih = (SpatialIndexHandler)sii.next(); if (sih != null && sih.spatialIndex != null) { ESRIBoundingBox boundingBox = sih.spatialIndex.getBounds();
    public DataBounds getDataBounds() {        DataBounds box = null;        ESRIBoundingBox bounds = new ESRIBoundingBox();         Iterator sii = spatialIndexes.iterator();        while (sii.hasNext()) {            SpatialIndex si = (SpatialIndex)sii.next();            if (si != null) {                ESRIBoundingBox boundingBox = spatialIndex.getBounds();                if (bounds != null) {                    bounds.addBounds(boundingBox);                }            }        }        return box;    }