while (inputId.equals(id) == false) {
byte zoneCount = in.readByte();
for (int i = 0; i < zoneCount; i++) {
in.readUTF();
}
in.skip(5);
inputId = in.readUTF();
if (inputId.length() == 0) {
throw new IllegalArgumentException("Territory " + id + " could not be loaded");
}
}