class ServiceEventDataBuildUpdater implements AuditEventBuilderUpdater<ServiceEventData> {

    @Override
    public void update(AuditProto.AuditEvent.Builder auditEventBuilder, ServiceEventData eventData) {
        AuditProto.ServiceEventData.Builder serviceEventDataBuilder = builderProvider.getNewServiceEventDataBuilder();
        doIfTrue(eventData.getEventDetails(), StringUtils::isNotEmpty, serviceEventDataBuilder::setEventDetails);
        doIfTrue(eventData.getVersion(), StringUtils::isNotEmpty, serviceEventDataBuilder::setDetailsVersion);
        auditEventBuilder.setServiceEventData(serviceEventDataBuilder.build());
    }

    public  ServiceEventDataBuildUpdater(ServiceEventDataBuilderProvider builderProvider);

}