Add document factory base class backed by Map and Lambda functional object
Implement a new document factory base class (MappedDocumentFactory class and IMappedDocumentFactory interface).
With following Doc class.
Developer can use one of the following approach:
At plugin Activator start method, register the document class.
Create an osgi component, at the bind method for the IMappedDocumentFactory service.
Create a subclass of MappedDocumentFactory, register as IDocFactory service (DO NOT register as IMappedDocumentFactory service).