public static void main (String[] args) {
Resolver resolver = new Resolver();
XRD eqRoot = new XRD();
Service eqAuthService = new Service();
eqAuthService.addMediaType(Tags.CONTENT_TYPE_XRDS + ";trust=none", SEPElement.MATCH_ATTR_CONTENT, Boolean.FALSE);
eqAuthService.addType(Tags.SERVICE_AUTH_RES);
//eqAuthService.addURI("http://equal.beta.xri.net");
eqAuthService.addURI("http://equal.xri.net");
eqRoot.addService(eqAuthService);
// System.out.println(eqRoot.toString());
XRD atRoot = new XRD();
Service atAuthService = new Service();
atAuthService.addMediaType(Tags.CONTENT_TYPE_XRDS + ";trust=none", SEPElement.MATCH_ATTR_CONTENT, Boolean.FALSE);
atAuthService.addType(Tags.SERVICE_AUTH_RES);
//atAuthService.addURI("http://at.beta.xri.net/cgi-bin/xri");
atAuthService.addURI("http://at.xri.net");
//atAuthService.addURI("http://xria.2idi.com/@");
atRoot.addService(atAuthService);
// System.out.println(atRoot.toString());
XRD bangRoot = new XRD();
Service bangAuthService = new Service();
bangAuthService.addMediaType(Tags.CONTENT_TYPE_XRDS + ";trust=none", SEPElement.MATCH_ATTR_CONTENT, Boolean.FALSE);
bangAuthService.addType(Tags.SERVICE_AUTH_RES);
bangAuthService.addURI("http://bang.beta.xri.net/cgi-bin/xri");
bangRoot.addService(bangAuthService);
// System.out.println(bangRoot.toString());
resolver.setAuthority("=", eqRoot);
resolver.setAuthority("@", atRoot);