return line.getMethod() +" "+ line.getUri();
}
private Document getAlertDocument(String name) {
if(alertDocumentCache.containsKey(name))
return alertDocumentCache.get(name);
final IXmlRepository xmlRepository = Activator.getDefault().getXmlRepository();
if(xmlRepository == null) {
logger.warn("Could not render alert because xml repository service is not available");
return null;
}
Document alertDocument = xmlRepository.getDocument("alerts/"+ name + ".xml");
if(alertDocument == null)
alertDocument = xmlRepository.getDocument("alerts/default.xml");
if(alertDocument == null) {
logger.warn("Could not load XML data for alert named '"+ name + "'");
return null;
}
alertDocumentCache.put(name, alertDocument);