public void init() {
ViewerCreatorMap map = factory.getViewerCreatorMap();
map.register(MainModel.class, new SwingViewerCreator(MainViewer.class));
map.register(MediaArrayModel.class, new MediaArrayLayout(), false);
try {
// create an editor for the main model
DataViewer editor = getFactory().createViewer(mainModel, true);