code: public void writeHistoryProject(CmsRequestContext context, int publishTag, long publishDate) throws CmsException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              m_driverManager.writeHistoryProject(dbc, publishTag, publishDate);
          } catch (Exception e) {
              dbc.report(
                  null,
                  Messages.get().container(
                      Messages.ERR_HISTORY_PROJECT_4,
                      new Object[] {
                          new Integer(publishTag),
                          dbc.currentProject().getName(),
                          dbc.currentProject().getUuid(),
                          new Long(publishDate)}),
                  e);
          } finally {
              dbc.clear();
          }
      }
docs: Creates a historical entry of the current project.<p>
  
  @param context the current request context
  @param publishTag the correlative publish tag
  @param publishDate the date of publishing
  
  @throws CmsException if operation was not successful