docs: private String generateResponse(Boolean success, String message, String stacktrace) {
  
          JSONObject result = new JSONObject();
          try {
              result.put(I_CmsUploadConstants.KEY_SUCCESS, success);
              result.put(I_CmsUploadConstants.KEY_MESSAGE, message);
              result.put(I_CmsUploadConstants.KEY_STACKTRACE, stacktrace);
              result.put(I_CmsUploadConstants.KEY_REQUEST_SIZE, getRequest().getContentLength());
              result.put(I_CmsUploadConstants.KEY_UPLOADED_FILES, new JSONArray(m_resourcesCreated.keySet()));
              result.put(I_CmsUploadConstants.KEY_UPLOADED_FILE_NAMES, new JSONArray(m_resourcesCreated.values()));
              if (m_uploadHook != null) {
                  result.put(I_CmsUploadConstants.KEY_UPLOAD_HOOK, m_uploadHook);
              }
          } catch (JSONException e) {
              LOG.error(m_bundle.key(org.opencms.ade.upload.Messages.ERR_UPLOAD_JSON_0), e);
          }
          return result.toString();
      }