- Display display = Display.getCurrent();
- if (display == null)
- throw new CmsException("No display available");
- CmsView cmsView = (CmsView) display.getData(CmsView.KEY);
- if (cmsView == null)
- throw new CmsException("No CMS view available");
- return cmsView;