LinkService linkService = null;
try {
linkService = (LinkService)this.manager.lookup(LinkService.ROLE);
// create event link
LinkEvent event = new LinkEvent(link);
String eventLink = linkService.getLinkURI(event);
// insert event link
attr.setValue(index, eventLink);
} catch (ComponentException e) {
throw new SAXException(e);
} finally {
this.manager.release(linkService);
}
}
}
String eventLink = null;
DocumentFragment fragment = null;
// process element that contains link
if (this.elementName != null && name.equals(this.elementName)) {
String link = this.endTextRecording();
LinkService linkService = null;
try {
linkService = (LinkService)this.manager.lookup(LinkService.ROLE);
// create event link
LinkEvent event = new LinkEvent(link);
eventLink = linkService.getLinkURI(event);
} catch (ComponentException e) {
throw new SAXException(e);
} finally {
this.manager.release(linkService);