PlanController planController =
new PlanController(home, preferences, viewFactory, null, undoSupport);
// Build an ordered list of walls added to home
final ArrayList<Wall> orderedWalls = new ArrayList<Wall>();
home.addWallsListener(new CollectionListener<Wall> () {
public void collectionChanged(CollectionEvent<Wall> ev) {
if (ev.getType() == CollectionEvent.Type.ADD) {
orderedWalls.add(ev.getItem());
}
}