throw new ThingReadException( "While accessing the CDFDE dashboard file.", ex );
}
// 2. Obtain a reader to read the dashboard file
MetaModel metaModel = MetaModelManager.getInstance().getModel();
CdfdeJsThingReaderFactory thingReaderFactory = new CdfdeJsThingReaderFactory( metaModel );
IThingReader reader;
try {
reader = thingReaderFactory.getReader( KnownThingKind.Dashboard, null, null );
} catch ( UnsupportedThingException ex ) {
throw new ThingReadException( "While obtaining a reader for a dashboard.", ex );
}
// 3. Read it