String imagePath = basePath+"/catalog/images";
String shortName = Val.escapeXml(msgBroker.retrieveMessage("catalog.openSearch.shortName"));
String description = Val.escapeXml(msgBroker.retrieveMessage("catalog.openSearch.description"));
// read the XML, substitute values
ResourcePath rp = new ResourcePath();
rp.makeUrl(XML_LOCATION);
String xml = XmlIoUtil.readXml(rp.makeUrl(XML_LOCATION).toExternalForm());
xml = xml.replaceAll("\\{openSearch.restPath\\}",restPath);
xml = xml.replaceAll("\\{openSearch.imagePath\\}",imagePath);
xml = xml.replaceAll("\\{openSearch.shortName\\}",shortName);
xml = xml.replaceAll("\\{openSearch.description\\}",description);