public void writeClaimedIdentifierXrds(Writer writer, String opLocalIdentifier) {
try {
ObjectFactory objectFactory = new ObjectFactory();
XRDS xrds = objectFactory.createXRDS();
XRD xrd = objectFactory.createXRD();
Type type = objectFactory.createType();
type.setValue(DiscoveryInformation.OPENID2);
URIPriorityAppendPattern uri = objectFactory.createURIPriorityAppendPattern();
uri.setValue(getServiceURL(OpenIdService.OPEN_ID_SERVICE));
Service service = objectFactory.createService();
service.getType().add(type);
service.getURI().add(uri);
LocalID localId = new LocalID();
localId.setValue(opLocalIdentifier);
service.getLocalID().add(localId);
xrd.getService().add(service);
xrds.getOtherelement().add(xrd);
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
marshaller.marshal(xrds, writer);