// take a copy of enlisted adapters ... the JDO implementation of the PublishingService
// creates further entities which would be enlisted; taking copy of the keys avoids ConcurrentModificationException
List<ObjectAdapter> enlistedAdapters = Lists.newArrayList(changeKindByEnlistedAdapter.keySet());
for (final ObjectAdapter enlistedAdapter : enlistedAdapters) {
final ChangeKind changeKind = changeKindByEnlistedAdapter.get(enlistedAdapter);
final PublishedObjectFacet publishedObjectFacet = enlistedAdapter.getSpecification().getFacet(PublishedObjectFacet.class);
if(publishedObjectFacet == null) {
continue;
}
final PublishedObject.PayloadFactory payloadFactory = publishedObjectFacet.value();
final RootOid enlistedAdapterOid = (RootOid) enlistedAdapter.getOid();
final String oidStr = getOidMarshaller().marshal(enlistedAdapterOid);
final String title = oidStr;