}
static private TemplateLibrary loadTrustedLibrary(String resource) {
try {
String content = ResourceLoader.getContent(resource);
return new XmlTemplateLibrary(Uri.parse("#OSML"), XmlUtil.parse(content),
content, true);
} catch (IOException ioe) {
logger.log(Level.WARNING, null, ioe);
} catch (XmlException xe) {
logger.log(Level.WARNING, null, xe);