void addTilesets(final InputSerializer in) throws IOException, ClassNotFoundException {
  final int amount=in.readInt();
  for (int i=0; i < amount; i++) {
    final TileSetDefinition tileset=(TileSetDefinition)in.readObject(new TileSetDefinition(null,null,-1));
    tilesets.add(tileset);
  }
}

void addTilesets ( final InputSerializer in ) throws IOException , ClassNotFoundException { final int amount = in . readInt ( ) ; for ( int i = 0 ; i < amount ; i ++ ) { final TileSetDefinition tileset = ( TileSetDefinition ) in . readObject ( new TileSetDefinition ( null , null , - 1 ) ) ; tilesets . add ( tileset ) ; } }
add tilesets . the store will require validating afterwards .
