code: protected void internalWriteOrgUnitProperty(CmsDbContext dbc, CmsResource resource, CmsProperty property)
      throws CmsException {
  
          CmsUUID projectId = ((dbc.getProjectId() == null) || dbc.getProjectId().isNullUUID())
          ? dbc.currentProject().getUuid()
          : dbc.getProjectId();
          // write the property
          m_driverManager.writePropertyObject(dbc, resource, property);
          resource.setState(CmsResource.STATE_UNCHANGED);
          m_driverManager.getVfsDriver(dbc).writeResource(dbc, projectId, resource, CmsDriverManager.NOTHING_CHANGED);
  
          // online persistence
          CmsProject project = dbc.currentProject();
          dbc.getRequestContext().setCurrentProject(m_driverManager.readProject(dbc, CmsProject.ONLINE_PROJECT_ID));
          try {
              m_driverManager.writePropertyObject(dbc, resource, property); // assume the resource is identical in both projects
              resource.setState(CmsResource.STATE_UNCHANGED);
              m_driverManager.getVfsDriver(
                  dbc).writeResource(dbc, dbc.currentProject().getUuid(), resource, CmsDriverManager.NOTHING_CHANGED);
          } finally {
              dbc.getRequestContext().setCurrentProject(project);
          }
      }
docs: Writes a property for an organizational unit resource, online AND offline.<p>
  
  @param dbc the current database context
  @param resource the resource representing the organizational unit
  @param property the property to write
  
  @throws CmsException if something goes wrong