s.setOrder(orderNumber, newOrders); sendUpdateMove(s);
sendUpdateStationMove(orderNumber, newOrders);
    private void removeLastWagon(){        TrainOrdersModel oldOrders, newOrders;        MutableSchedule s = getSchedule();        int orderNumber = this.orders.getSelectedIndex();        oldOrders = s.getOrder(orderNumber);        int[] oldConsist = oldOrders.consist;        int newLength = oldConsist.length -1 ;        if(newLength < 0){            throw new NoSuchElementException("No wagons to remove!");        }        int[] newConsist = new int[newLength];                //Copy existing wagons        System.arraycopy(oldConsist, 0, newConsist, 0, newConsist.length);	newOrders = new TrainOrdersModel(oldOrders.getStationNumber(),		newConsist, oldOrders.waitUntilFull, oldOrders.loadTrain,		oldOrders.unloadTrain);        s.setOrder(orderNumber, newOrders);        sendUpdateMove(s);    }