code: public void writeResourceProjectLastModified(CmsRequestContext context, CmsResource resource, CmsProject project)
      throws CmsException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              checkOfflineProject(dbc);
              checkPermissions(dbc, resource, CmsPermissionSet.ACCESS_WRITE, true, CmsResourceFilter.ALL);
              m_driverManager.writeProjectLastModified(dbc, resource, project.getUuid());
          } catch (Exception e) {
              dbc.report(null, Messages.get().container(Messages.ERR_WRITE_RESOURCE_1, context.getSitePath(resource)), e);
          } finally {
              dbc.clear();
          }
      }
docs: Writes the 'projectlastmodified' field of a resource record.<p>
  
  @param context the current database context
  @param resource the resource which should be modified
  @param project the project whose project id should be written into the resource record
  
  @throws CmsException if something goes wrong