Recently we wanted to create a domain object which needed to have an external dependency in order to do a…