The service will expose a registry of RestContributors.
Contributors will have :
- a name
- an implementation
They will implement the RestContributor interface :
void contribute(JSonGenerator jg, DocumentModel doc, MultiValuedMap<String,Object> headers);
or
Serializable contribute(DocumentModel doc, MultiValuedMap<String,Object> headers);