class ResultServiceEventDataBuildUpdater implements AttemptAuditEventResultBuilderUpdater<ResultServiceEventData> {

    @Override
    public void update(AuditProto.AttemptAuditEventResult.Builder builder, ResultServiceEventData resultEventData) {
        AuditProto.ResultServiceEventData.Builder resultServiceEventDataBuilder = builderProvider.getNewResultServiceEventDataBuilder()
                .addAllResourceCrn(resultEventData.getResourceCrns());
        doIfTrue(resultEventData.getResultDetails(), StringUtils::isNotEmpty, resultServiceEventDataBuilder::setResultDetails);

        builder.setResultServiceEventData(resultServiceEventDataBuilder.build());
    }

    public  ResultServiceEventDataBuildUpdater(ResultServiceEventDataBuilderProvider builderProvider);

}