code: private void handleEvent(CmsEvent event) {
  
          switch (event.getType()) {
              case I_CmsEventListener.EVENT_PUBLISH_PROJECT:
                  //System.out.print(getEventName(event.getType()));
                  String publishIdStr = (String)event.getData().get(I_CmsEventListener.KEY_PUBLISHID);
                  if (publishIdStr != null) {
                      CmsUUID publishId = new CmsUUID(publishIdStr);
                      try {
                          List<CmsPublishedResource> publishedResources = m_cms.readPublishedResources(publishId);
                          if (!publishedResources.isEmpty()) {
                              String[] typesToMatch = new String[] {TYPE_PROPERTIES_BUNDLE, TYPE_XML_BUNDLE};
                              boolean reload = false;
                              for (CmsPublishedResource res : publishedResources) {
                                  for (String typeName : typesToMatch) {
                                      if (OpenCms.getResourceManager().matchResourceType(typeName, res.getType())) {
                                          reload = true;
                                          break;
                                      }
                                  }
                              }
                              if (reload) {
                                  scheduleReload();
                              }
                          }
                      } catch (CmsException e) {
                          LOG.error(e.getLocalizedMessage(), e);
                      }
                  }
                  break;
              case I_CmsEventListener.EVENT_CLEAR_CACHES:
                  scheduleReload();
                  break;
              default:
          }
      }
docs: This actually handles the event.<p>
  
  @param event the received event