manager.persist(entity);
if (serviceCheckupChunk.xml != null) {
AuditDoc<Checkup> auditCheckup = new AuditDoc<Checkup>(null, getCollaborator());
Checkup checkup = new Checkup();
checkup.setCheckupType(findEntity(CheckupType.class, serviceCheckupChunk.checkupTypeID));
checkup.setServiceRender(entity);
checkup.setXml(serviceCheckupChunk.xml);
manager.persist(checkup);
manager.flush();
manager.refresh(checkup);
auditCheckup.check(checkup);
AuditDetails details = persistAudit(auditCheckup);