I_CmsReport report = null;
// CmsDbContext dbc;
try {
String exportUser = OpenCms.getDefaultUsers().getUserExport();
CmsObject cms = OpenCms.initCmsObject(exportUser);
CmsUUID projectId = (CmsUUID) event.getData().get(I_CmsEventListener.KEY_PROJECTID);
CmsUUID publishHistoryId = new CmsUUID((String)event.getData().get(I_CmsEventListener.KEY_PUBLISHID));
report = (I_CmsReport)event.getData().get(I_CmsEventListener.KEY_REPORT);
PublishProjectEventContext context = new PublishProjectEventContext(cms, projectId, report);
boolean isInitialized = false;
@SuppressWarnings("unchecked")
List<CmsPublishedResource> resources = cms.readPublishedResources(publishHistoryId);
Iterator<CmsPublishedResource> iter = resources.iterator();
while (iter.hasNext()) {
CmsPublishedResource resource = (CmsPublishedResource) iter.next();
if (handler.handlesResource(context, resource)) {