*/
public synchronized TocCollection getConfiguredTocs() {
if (_tocCollection != null) {
return _tocCollection;
} else {
TocCollection tocs;
try {
TocFactory factory = new TocFactory();
tocs = factory.loadTocConfig();
String cacheOpt = Val.chkStr(this.getParameters().getValue("cacheTocDefinitions"));
if (!cacheOpt.equalsIgnoreCase("false")) {
_tocCollection = tocs;
}
return tocs;
} catch (Exception e) {
e.printStackTrace(System.err);
LogUtil.getLogger().log(Level.SEVERE, "Unable to load toc configuration:", e);
return new TocCollection();
}
}
}