code: protected void internalResetResourceState(CmsDbContext dbc, CmsResource resource) throws CmsDataAccessException {
  
          try {
              // reset the resource state
              resource.setState(CmsResource.STATE_UNCHANGED);
              m_driverManager.getVfsDriver(dbc).writeResourceState(
                  dbc,
                  dbc.currentProject(),
                  resource,
                  CmsDriverManager.UPDATE_ALL,
                  true);
          } catch (CmsDataAccessException e) {
              if (LOG.isErrorEnabled()) {
                  LOG.error(
                      Messages.get().getBundle().key(
                          Messages.LOG_ERROR_RESETTING_RESOURCE_STATE_1,
                          resource.getRootPath()),
                      e);
              }
              throw e;
          }
      }
docs: Resets the state to UNCHANGED for a specified resource.<p>
  
  @param dbc the current database context
  @param resource the Cms resource
  
  @throws CmsDataAccessException if something goes wrong