ObjectInputStream restore = new ObjectInputStream(
fileInputStream);
while (true) {
try {
SuggestionComponents suggestTreeEntry = (SuggestionComponents) restore
.readObject();
suggestTree.put(suggestTreeEntry.getSuggestString(),
suggestTreeEntry.getWeight(),
suggestTreeEntry.getKey());
imageIndex.put(suggestTreeEntry.getKey(),
suggestTreeEntry.getImageBase64());
} catch (EOFException e) {
restore.close();
break;
}