@Override protected void save(DataOutput output) throws IOException { output.writeUTF(getName()); output.writeInt(this.nodes.length); for (Node node : this.nodes) { output.writeInt(node.getID()); } this.wayInfo.saveToOutput(output); }