Use global registry and document observer.

#92