String stationTypeName = ((TrackRule) world.get(KEY.TRACK_RULES, tile.getTrackRule(), Player.AUTHORITATIVE)).toString();
String stationTypeName = ((BuildingType) world.get(KEY.BUILDING_TYPES, tile.getBuildingTile().getType(), Player.AUTHORITATIVE)).getName();
    public void display() {        if (wi.getRowNumber() > 0) {            this.previousStation.setEnabled(true);        } else {            this.previousStation.setEnabled(false);        }                if (wi.getRowNumber() < (wi.size() - 1)) {            this.nextStation.setEnabled(true);        } else {            this.nextStation.setEnabled(false);        }        stationTableModel.updateModel();	jPanel1.removeAll();        int stationNumber = wi.getIndex();        String label;        if (stationNumber != WorldIterator.BEFORE_FIRST) {            StationModel station =	    (StationModel) world.get(KEY.STATIONS, stationNumber,				     modelRoot.getPlayerPrincipal());            FreerailsTile tile = world.getTile(station.x, station.y);	    String stationTypeName = ((TrackRule) world.get(KEY.TRACK_RULES,			tile.getTrackRule(),			Player.AUTHORITATIVE)).toString();            cargoBundleIndex = station.getCargoBundleNumber();            CargoBundle cargoWaiting = (CargoBundle) world.get		(KEY.CARGO_BUNDLES, station.getCargoBundleNumber());            String title = station.getStationName()		+ " (" + stationTypeName + ")";            for (int i = 0; i < world.size(KEY.CARGO_TYPES); i++) {                //get the values		boolean isDemanded = station.getDemand().isCargoDemanded(i);		if (! isDemanded)		    continue;		JLabel jl = new JLabel(getWagonImage(i));		CargoType ct = (CargoType) world.get(KEY.CARGO_TYPES,			i, Player.AUTHORITATIVE);		jl.setToolTipText(ct.getDisplayName());		jPanel1.add(jl);            }            label = title;        } else {            cargoBundleIndex = WorldIterator.BEFORE_FIRST;            label = Resources.get("No Station");        }        jLabel1.setText(label);        this.repaint();    }