}
}
// create and configure a resolver
Resolver resolver = new Resolver();
// populate the root with whatever trustType the user requested
String trustParam = ";" + trustType.getParameterPair();
XRD eqRoot = new XRD();
Service eqAuthService = new Service();
eqAuthService.addMediaType(Tags.CONTENT_TYPE_XRDS + trustParam, SEPElement.MATCH_ATTR_CONTENT, Boolean.FALSE);
eqAuthService.addType(Tags.SERVICE_AUTH_RES);
eqAuthService.addURI(msRootEqualsURI);
eqRoot.addService(eqAuthService);
XRD atRoot = new XRD();
Service atAuthService = new Service();
atAuthService.addMediaType(Tags.CONTENT_TYPE_XRDS + trustParam, SEPElement.MATCH_ATTR_CONTENT, Boolean.FALSE);
atAuthService.addType(Tags.SERVICE_AUTH_RES);
atAuthService.addURI(msRootAtURI);
atRoot.addService(atAuthService);
XRD bangRoot = new XRD();
Service bangAuthService = new Service();
bangAuthService.addMediaType(Tags.CONTENT_TYPE_XRDS + trustParam, SEPElement.MATCH_ATTR_CONTENT, Boolean.FALSE);
bangAuthService.addType(Tags.SERVICE_AUTH_RES);
bangAuthService.addURI(msRootBangURI);
bangRoot.addService(bangAuthService);
resolver.setAuthority("=", eqRoot);
resolver.setAuthority("@", atRoot);
resolver.setAuthority("!", bangRoot);
if (msRootFile != null)
{
setRootsFromFile(resolver, msRootFile);
}