How to detect that model is setting up first time?

I am using ModelChangeListener for sending changes to server.
But when initially a page is opened and for the first time i am setting up model’s nodeDataArray and linkDataArray. Then also it is being fired.

So it sends all requests to server. i don’t want to fire this events when first time a model is being setup.

how can i do that ?

Don’t register that listener until an “InitialLayoutCompleted” DiagramEvent listener runs.