Buggy code:
public class ProvideAndRegisterOrchestrationActor extends UntypedActor { LoggingAdapter log = Logging . getLogger ( getContext ( ) . system ( ) , this ) ; private abstract class IdentifierMapping { boolean resolved = false ; boolean successful = false ; Identifier fromId ; String correlationId ; abstract void resolve ( Identifier resolvedId ) { } } private class PatientIdentifierMapping extends ProvideAndRegisterOrchestrationActor . IdentifierMapping { String documentNodeURN ; RegistryObjectType documentNode ; public PatientIdentifierMapping ( Identifier fromId , String documentNodeURN , RegistryObjectType documentNode ) { } @ Override void resolve ( Identifier resolvedId ) { } } private class HealthcareWorkerIdentifierMapping extends ProvideAndRegisterOrchestrationActor . IdentifierMapping { List < String > slotList ; public HealthcareWorkerIdentifierMapping ( Identifier fromId , List < String > slotList ) { } @ Override void resolve ( Identifier resolvedId ) { } } private class FacilityIdentifierMapping extends ProvideAndRegisterOrchestrationActor . IdentifierMapping { String localLocationName ; List < String > slotList ; public FacilityIdentifierMapping ( Identifier fromId , String localLocationName , List < String > slotList ) { } @ Override void resolve ( Identifier resolvedId ) { } } private final MediatorConfig config ; private final ActorRef resolvePatientIdHandler ; private final ActorRef resolveHealthcareWorkerIdHandler ; private final ActorRef resolveFacilityIdHandler ; private OrchestrateProvideAndRegisterRequest originalRequest ; private String messageBuffer ; private String xForwardedFor ; private ProvideAndRegisterDocumentSetRequestType parsedRequest ; private List < ProvideAndRegisterOrchestrationActor . IdentifierMapping > enterprisePatientIds = new ArrayList < > ( ) ; private List < ProvideAndRegisterOrchestrationActor . IdentifierMapping > enterpriseHealthcareWorkerIds = new ArrayList < > ( ) ; private List < ProvideAndRegisterOrchestrationActor . IdentifierMapping > enterpriseFacilityIds = new ArrayList < > ( ) ; public ProvideAndRegisterOrchestrationActor ( MediatorConfig config , ActorRef resolvePatientIdHandler , ActorRef resolveHealthcareWorkerIdHandler , ActorRef resolveFacilityIdHandler ) { } private void parseRequest ( OrchestrateProvideAndRegisterRequest msg ) { } private void processParsedRequest ( ProvideAndRegisterDocumentSetRequestType doc ) { } private void initIdentifiersToBeResolvedMappings ( ) throws ValidationException { } private void readPatientIdentifiers ( ) throws CXParseException { } protected void readHealthcareWorkerAndFacilityIdentifiers ( ) throws ValidationException { } protected List < Map < String , SlotType1 > > getClassificationSlotsFromExtrinsicObject ( String classificationScheme , ExtrinsicObjectType eo ) throws JAXBException { } private void resolveEnterpriseIdentifiers ( ) { } private void resolvePatientIdentifiers ( ) { } private void resolveHealthcareWorkerIdentifiers ( ) { } private void resolveFacilityIdentifiers ( ) { } private void processResolvedPatientId ( ResolvePatientIdentifierResponse response ) { } private void processResolvedHealthcareWorkerId ( ResolveHealthcareWorkerIdentifierResponse response ) { } private void processResolvedFacilityId ( ResolveFacilityIdentifierResponse response ) { } private void enrichResolvedId ( BaseResolveIdentifierResponse response , List < ProvideAndRegisterOrchestrationActor . IdentifierMapping > lst ) { } private boolean checkAndRespondIfAllResolved ( ) { if ( areAllIdentifiersResolved ( ) ) { try { String errors = getResolveIdentifierErrors ( ) ; if ( errors == null ) { respondSuccess ( ) ; } else { respondBadRequest ( errors ) ; } } catch ( JAXBException ex ) { originalRequest . getRequestHandler ( ) . tell ( new ExceptError ( ex ) , getSelf ( ) ) ; } finally { <START_BUG> sendAuditMessage ( PROVIDE_AND_REGISTER_RESPONSE ) ; <END_BUG> return true ; } } return false ; } private void respondSuccess ( ) throws JAXBException { } private void respondBadRequest ( String errors ) { } private boolean areAllIdentifiersResolved ( ) { } private boolean areAllIdentifiersResolvedForList ( List < ProvideAndRegisterOrchestrationActor . IdentifierMapping > lst ) { } private String getResolveIdentifierErrors ( ) { } private List < ProvideAndRegisterOrchestrationActor . IdentifierMapping > getAllUnsuccessfulIdentifiers ( List < ProvideAndRegisterOrchestrationActor . IdentifierMapping > lst ) { } private void sendAuditMessage ( ATNAAudit . TYPE type ) { } @ Override public void onReceive ( Object msg ) throws Exception { } }

Fix:
sendAuditMessage ( PROVIDE_AND_REGISTER_ENRICHED ) ;