expandRelativeDidUrls
Expands relative DID URLs in this document to absolute DID URLs, per the expandRelativeUrls resolution option (DID Resolution 1.0 §4.1, §4.4).
Verification methods and verification relationships are modelled as org.trustweave.did.identifiers.VerificationMethodId, which always renders an absolute DID URL, so only DidService.id can be relative. A value that already carries a URI scheme is left untouched; a leading # or ? is appended to the document id per RFC 3986 §5.3 (no inserted separator, since both are already valid continuations of the base URI); anything else is treated as a relative path reference.
Returns this document unchanged (same instance) when there is nothing to expand.