protected String getContent(Map<String, Object> data) {
    String content = "";
    try {
      if (isLoginPage) {
        return getLoginForm(data);
      } else if (!isAuthorized) {
        return "<h3>" + ResourceBundleUtil.getMessage("ubuilder.noAuthorize") + "</h3>";
      } else if (userview.getCurrent() != null) {
        if (isQuickEditEnabled) {
          String label =
              ResourceBundleUtil.getMessage("adminBar.label.page")
                  + ": "
                  + userview.getCurrent().getPropertyString("label");
          String url =
              request.getContextPath()
                  + "/web/console/app/"
                  + userview.getParamString("appId")
                  + "/"
                  + userview.getParamString("appVersion")
                  + "/userview/builder/"
                  + userview.getPropertyString("id")
                  + "?menuId="
                  + userview.getCurrent().getPropertyString("id");
          content += "<div class=\"quickEdit\" style=\"display: none\">\n";
          content +=
              "    <a href=\""
                  + url
                  + "\" target=\"_blank\"><i class=\"icon-edit\"></i> "
                  + label
                  + "</a>\n";
          content += "</div>\n";
        }

        content += UserviewUtil.getUserviewMenuHtml(userview.getCurrent());
      } else {
        String pageNotFound = theme.handlePageNotFound(data);
        if (pageNotFound != null) {
          return pageNotFound;
        } else {
          return getDefaultTheme().handlePageNotFound(data);
        }
      }
    } catch (Exception e) {
      String errorHandle = theme.handleContentError(e, data);
      if (errorHandle != null) {
        return errorHandle;
      } else {
        return getDefaultTheme().handleContentError(e, data);
      }
    }

    return content;
  }
 protected String getMenus(Map<String, Object> data) {
   String content = "";
   String menu = theme.getMenus(data);
   if (menu == null) {
     menu = getDefaultTheme().getMenus(data);
   }
   if (isQuickEditEnabled) {
     String label =
         ResourceBundleUtil.getMessage("adminBar.label.menu")
             + ": "
             + userview.getPropertyString("name");
     String url =
         request.getContextPath()
             + "/web/console/app/"
             + userview.getParamString("appId")
             + "/"
             + userview.getParamString("appVersion")
             + "/userview/builder/"
             + userview.getPropertyString("id");
     content += "<div class=\"quickEdit\" style=\"display: none\">\n";
     content +=
         "    <a href=\""
             + url
             + "\" target=\"_blank\"><i class=\"icon-edit\"></i> "
             + label
             + "</a>\n";
     content += "</div>\n";
   }
   content += menu;
   return content;
 }
 protected String getLoginForm(Map<String, Object> data) {
   String content = theme.getLoginForm(data);
   if (content != null) {
     return content;
   } else {
     return getDefaultTheme().getLoginForm(data);
   }
 }