How to subscribe to cell change events in calc

I am developing an extension in Java for calc
I want to perform certain formatting on a cell change event.
As of now i am using XModifyListener but I am facing multiple issues in this.

  1. Event gets triggered twice even though it the listener is registered only once
  2. Event gets triggered when custom properties are added to sheet also.

Please suggest an alternate approach.

Using XModifyListener with the Cell Range solves the issue