Where to register Variable Listener?

Hi everyone,
I have created custom variable listener and the question is, where I can register this listener?
There is an internal class called ExecutionEntity that allows to add variable listeners, but how can I override this class?

Thanks in advance!