@PostConstruct
    public void init() {
        LOG.info("Startup ...");

        if (createDemoData) {
            LOG.info("creat demodata...");
            Viewport vp = vr.findOrCreateMainViewport();
            
            vr.initViewport();
            
            
            
            for (int c = 0; c < 5; c++) {
                PresentationItem i = new PresentationItem();
                i.setName("Demoitem " + c);
                i.setActive(true);
                i.setDuration(10);
                i.setPosition(c);

                PresentationDocument doc = new PresentationDocument();
                doc.setDocumentType(DocumentType.NOTE);
                doc.setName("Demo Document " + c);

                i.setDocument(doc);
                i.setPresentationStream(vp.getSlotA().getPresentationStream());
                vp.getSlotA().getPresentationStream().getItems().add(i);
                pr.persist(i);
            }
        }
    }