XRD xrd = tmpXRDS.getDescriptorAt(0);
xrdsOut.add(xrd);
ServerStatus sstat = xrd.getServerStatus();
Status stat;
if (sstat == null) {
// compatibility: if no ServerStatus, look for Status
stat = xrd.getStatus();
}
else {
stat = new Status(sstat.getCode(), sstat.getText());
xrd.setStatus(stat);
}
if (stat == null)
throw makeResolutionException(xrdsOut, query, Status.INVALID_XRDS, "Missing ServerStatus or Status element in Redirect XRD");