How does HIU know the endpoint(url) of HIP after granting the consent

When user grants the consent of external HIU. Then HIU gets the id of consentArtefact in callback function (notify-hiu).
How HIU knows the endpoint(url) of HIP after this step. As HIU maintains only the list of HIP service id (not the end url of the HIP).