WorldIterator wi = new NonNullElements(KEY.STATIONS, finalROW); if (wi.next()) {  StationModel station = (StationModel) wi.getElement();  ProductionAtEngineShop before = station.getProduction(); int engineType = selectEngine.getEngineType(); int[] wagonTypes = selectWagons.getWagons(); ProductionAtEngineShop after = new ProductionAtEngineShop(engineType, wagonTypes);  Move m = new ChangeProductionAtEngineShopMove( before, after, wi.getIndex()); moveReceiver.processMove(m); }
            public void actionPerformed(ActionEvent arg0) {                WorldIterator wi = new NonNullElements(KEY.STATIONS, finalROW);                if (wi.next()) {                                        StationModel station = (StationModel) wi.getElement();                                        ProductionAtEngineShop before = station.getProduction();                    int engineType = selectEngine.getEngineType();                    int[] wagonTypes = selectWagons.getWagons();                    ProductionAtEngineShop after =                    new ProductionAtEngineShop(engineType, wagonTypes);                                        Move m =                    new ChangeProductionAtEngineShopMove(                    before,                    after,                    wi.getIndex());                    moveReceiver.processMove(m);                }                closeContent();            }