If more than one library import CustomAttributesRegistry and instantiate it on document, is this okay?
Or should new CustomAttributesRegistry(document) return the existing registry for the given document if it already exists, like singletons per document?