docs: public CmsFile readFile(CmsRequestContext context, CmsResource resource) throws CmsException {
  
          CmsFile result = null;
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              result = m_driverManager.readFile(dbc, resource);
          } catch (Exception e) {
              if (resource instanceof I_CmsHistoryResource) {
                  dbc.report(
                      null,
                      Messages.get().container(
                          Messages.ERR_READ_FILE_HISTORY_2,
                          context.getSitePath(resource),
                          new Integer(resource.getVersion())),
                      e);
              } else {
                  dbc.report(null, Messages.get().container(Messages.ERR_READ_FILE_1, context.getSitePath(resource)), e);
              }
          } finally {
              dbc.clear();
          }
          return result;
      }