allowing user to specify their own DOI entity class. Added a new service to inject the class into the container