docs: public String buildReport() throws JspException, ServletException, IOException {
  
          List<String> lockedResources;
          if (Boolean.valueOf(getParamShowownlocks()).booleanValue()) {
              lockedResources = getLockedResources();
          } else {
              lockedResources = new ArrayList<String>(getBlockingLockedResources());
          }
          Collections.sort(lockedResources);
          Map<String, String> lockParams = new HashMap<String, String>();
          if (getParamResource() != null) {
              lockParams.put(PARAM_RESOURCE, getParamResource());
          }
          if (getParamResourcelist() != null) {
              lockParams.put(PARAM_RESOURCELIST, getParamResourcelist());
          }
          if (getParamShowownlocks() != null) {
              lockParams.put(PARAM_SHOWOWNLOCKS, getParamShowownlocks());
          }
          if (getParamIncluderelated() != null) {
              lockParams.put(PARAM_INCLUDERELATED, getParamIncluderelated());
          }
  
          CmsLockedResourcesList list = new CmsLockedResourcesList(
              getJsp(),
              lockedResources,
              CmsResource.getParentFolder(getResourceList().get(0)),
              lockParams);
          list.actionDialog();
          list.getList().setBoxed(false);
  
          StringBuffer result = new StringBuffer(512);
          result.append("<input type='hidden' name='locks' value='");
          result.append(getLockedResources().size()).append("'>\n");
          result.append("<input type='hidden' name='blockinglocks' value='");
          result.append(getBlockingLockedResources().size()).append("'>\n");
          result.append(CmsStringUtil.padLeft("", 120 - result.length()));
          result.append(CmsListExplorerColumn.getExplorerStyleDef());
          result.append("<div style='height:150px; overflow: auto;'>\n");
          result.append(list.getList().listHtml());
          result.append("</div>\n");
          return result.toString();
      }