private static void buildUIContainer(UIContainer uiContainer, Object model, boolean dashboard) throws Exception {
UIComponent uiComponent = null;
WebuiRequestContext context = Util.getPortalRequestContext();
if (model instanceof SiteBody) {
UISiteBody uiSiteBody = uiContainer.createUIComponent(context, UISiteBody.class, null, null);
uiSiteBody.setStorageId(((SiteBody) model).getStorageId());
uiComponent = uiSiteBody;
} else if (model instanceof PageBody) {
UIPageBody uiPageBody = uiContainer.createUIComponent(context, UIPageBody.class, null, null);
uiPageBody.setStorageId(((PageBody) model).getStorageId());
uiComponent = uiPageBody;