+
+
+ /**
+ * Return a singleton implementation that has loaded the default tours.
+ */
+ public static SlideSetManager getSlideSetManager() {
+ if (slideSetManager == null) {
+ try {
+ SlideSetManager ssm = new SlideSetManager(TOURS_BASE_DIR);
+ ssm.load();
+
+ if (ssm.getSlideSetNames().isEmpty()) {
+ throw new FileNotFoundException("No tours found.");
+ }
+
+ slideSetManager = ssm;
+ } catch (IOException e) {
+ throw new BugException(e);
+ }
+ }
+ return slideSetManager;
+ }