The getContents method from the ObjectService will use the eObject's IEditingDomainItemProvider if it exists.