throw new RuntimeException("First subsegment of '" + xriAuth + "' is null");
}
XRD rootXRD = getAuthority(rootAuth);
if (rootXRD == null) {
XRDS xrdsOut = new XRDS();
// unknown root
XRD err = createErrorXRD(
xriAuth.toURINormalForm(),
Status.UNKNOWN_ROOT,
"Authority '" + rootAuth + "' is not configured"
);
xrdsOut.add(err);
throw new PartialResolutionException(xrdsOut);
}
XRISegment segment = xriAuth.getXRISegment();