> // iterate over brick groups and include them > brickGroups = wall.getBrickGroups(); > for (i = 0; i < brickGroups.size(); i++) { > sling.include(brickGroups.get(i).getPath()); > }
It is OT but in such a situation one probably could/should use a for-each loop instead: for (BrickGroup brickGroup : wall.getBrickGroups()){ sling.include(brickGroup.getPath()); } Cheers, Andreas