code: public static CmsPreviewDialog createPreviewDialog(CmsPreviewInfo previewInfo) {
  
          String caption = generateCaption(previewInfo);
          CmsPreviewDialog dialog = new CmsPreviewDialog(caption, DIALOG_WIDTH + 12);
          dialog.initContent(previewInfo);
          dialog.initLocales(previewInfo);
          return dialog;
      }
docs: Creates a new preview dialog instance.<p>
  
  @param previewInfo the preview information
  
  @return the new preview dialog instance