- } else {
- String state = getState();
- try {
- if (state == null)
- throw new CmsException("State cannot be null");
- uiProvider.createUi(bodyArea, getNode());
- // if (page == null)
- // throw new CmsException("Page cannot be null");
- // // else if (state.length() == 0)
- // // log.debug("empty state");
- // else if (pages.containsKey(page))
- // pages.get(page).createUi(bodyArea, getNode());
- // else {
- // // try {
- // // RWT.getResponse().sendError(404);
- // // } catch (IOException e) {
- // // log.error("Cannot send 404 code", e);
- // // }
- // throw new CmsException("Unsupported state " + state);
- // }
- } catch (RepositoryException e) {
- throw new CmsException("Cannot refresh body", e);
- }