new TransientNodeData(QPath.makeChildPath(auditHistory.getQPath(), new InternalQName(null, auditRecordName)),
IdGenerator.generate(), -1, AuditService.EXO_AUDITRECORD, new InternalQName[0],
Integer.parseInt(auditRecordName), auditHistory.getIdentifier(), exoAuditRecordAccessControlList);
// exo:auditRecord
dataManager.update(new ItemState(arNode, ItemState.ADDED, true, ((ItemImpl)currentItem).getInternalPath()), true);
// jcr:primaryType
TransientPropertyData arPrType =
TransientPropertyData.createPropertyData(arNode, Constants.JCR_PRIMARYTYPE, PropertyType.NAME, false,
new TransientValueData(arNode.getPrimaryTypeName()));