if (SI_WATER_TOWER == -1 || TT_CLEAR == -1 || TR_STANDARD_TRACK == -1) {
i = new NonNullElements(KEY.BUILDING_TYPES, w, Player.AUTHORITATIVE); tmp = -1; while (i.next()) { BuildingType bt = (BuildingType) i.getElement(); if (bt.getStationRadius() == 3) { tmp = i.getIndex(); } } BT_LARGE_STATION = tmp;  if (SI_WATER_TOWER == -1 || TT_CLEAR == -1 || TR_STANDARD_TRACK == -1 || BT_LARGE_STATION == -1) {
    private WorldConstants(ReadOnlyWorld w) {	world = w;	NonNullElements i = new NonNullElements(KEY.STATION_IMPROVEMENTS, w,		Player.AUTHORITATIVE);	int tmp = -1;	while (i.next()) {	    StationImprovement si = (StationImprovement) i.getElement();	    if (si.getName().equals("WaterTower")) {		tmp = i.getIndex();	    }	}	SI_WATER_TOWER = tmp;	i = new NonNullElements(KEY.TERRAIN_TYPES, w, Player.AUTHORITATIVE);	tmp = -1;	while (i.next()) {	    TerrainType tt = (TerrainType) i.getElement();	    if ("Clear".equals(tt.getTerrainTypeName())) {		tmp = i.getIndex();	    }	}	TT_CLEAR = tmp;	i = new NonNullElements(KEY.TRACK_RULES, w, Player.AUTHORITATIVE);	tmp = -1;	while (i.next()) {	    TrackRule tr = (TrackRule) i.getElement();	    if ("standard track".equals(tr.toString())) {		tmp = i.getIndex();	    }	}	TR_STANDARD_TRACK = tmp;	if (SI_WATER_TOWER == -1 || TT_CLEAR == -1 || TR_STANDARD_TRACK == -1) {	    logger.log(Level.SEVERE, "A special configuration value " + 		    "needed to function could not be found:" +		    "SI_WATER_TOWER=" + SI_WATER_TOWER + 		    ", TT_CLEAR=" + TT_CLEAR + 		    ", TR_STANDARD_TRACK=" + TR_STANDARD_TRACK);	    System.exit(1);	}    }