class MapLayer {

    public List<BoundingBox> getAllBoundingBoxList(){
        if(boundingBoxMap != null){
            Collection<BoundingBox> values = boundingBoxMap.values();
            if(values != null && !values.isEmpty()){
                return new ArrayList<BoundingBox>(values);
            }
        }
        //We didn't find anything, let's check the parents...
        return parent == null ? new ArrayList<BoundingBox>() : parent.getAllBoundingBoxList();
    }

    public  MapLayer(String name, String title, Collection<String> srsList,
          Collection<MapLayer> subLayers, BoundingBox latLon);
    public  MapLayer( String name, String title, Collection<String> srsList, Collection<MapLayer> subLayers,
  		BoundingBox bbox, Map<String,BoundingBox> boundingBoxMap);

}