I am developing a Netbeans Platform application and face the following problem: When closing my app persists the opened windows A and B. Upon reopening my app the windows get deserialized one by one. First A then B. It is very possible that I receive new information for window B during the reopening of window A. At this point the program logic decides whether to open a new window B or use the existing one. But since window B doesn't exist yet it opens a new window. Afterwards the "old" window B is opened via deserialization.I am developing a Netbeans Platform application