docs: public String getContent(String target, String element, Locale locale) {
  
          I_CmsResourceLoader loader;
          CmsFile file;
          target = toAbsolute(target);
  
          try {
              file = getCmsObject().readFile(target);
              loader = OpenCms.getResourceManager().getLoader(file);
          } catch (ClassCastException e) {
              // no loader implementation found
              return CmsMessages.formatUnknownKey(e.getMessage());
          } catch (CmsException e) {
              // file might not exist or no read permissions
              return CmsMessages.formatUnknownKey(e.getMessage());
          }
  
          try {
              byte[] result = loader.dump(getCmsObject(), file, element, locale, getRequest(), getResponse());
              return new String(result, getRequestContext().getEncoding());
          } catch (UnsupportedEncodingException uee) {
              // encoding unsupported
              return CmsMessages.formatUnknownKey(uee.getMessage());
          } catch (Throwable t) {
              // any other exception, check for hidden root cause first
              Throwable cause = CmsFlexController.getThrowable(getRequest());
              if (cause == null) {
                  cause = t;
              }
              handleException(cause);
              return CmsMessages.formatUnknownKey(cause.getMessage());
          }
      }