Buggy code:
public class Fk7263ModuleApi implements ModuleApi { private static final Logger LOG = LoggerFactory . getLogger ( Fk7263ModuleApi . class ) ; static final String CODESYSTEMNAME_ICD10 = "ICD-10" ; @ Autowired private WebcertModelFactory webcertModelFactory ; @ Autowired private InternalDraftValidator internalDraftValidator ; @ Autowired private InternalToNotification internalToNotficationConverter ; @ Autowired @ Qualifier ( "fk7263-objectMapper" ) private ObjectMapper objectMapper ; @ Autowired ( required = false ) @ Qualifier ( "registerMedicalCertificateClient" ) private RegisterMedicalCertificateResponderInterface registerMedicalCertificateClient ; @ Autowired private ModelCompareUtil modelCompareUtil ; @ Autowired ( required = false ) private GetMedicalCertificateForCareResponderInterface getMedicalCertificateForCareResponderInterface ; @ Autowired private ConverterUtil converterUtil ; private ModuleContainerApi moduleContainer ; @ VisibleForTesting public void setRegisterMedicalCertificateClient ( RegisterMedicalCertificateResponderInterface registerMedicalCertificateClient ) { } @ Override public ValidateDraftResponse validateDraft ( InternalModelHolder internalModel ) throws ModuleException { } @ Override public PdfResponse pdf ( InternalModelHolder internalModel , List < Status > statuses , ApplicationOrigin applicationOrigin ) throws ModuleException { } @ Override public InternalModelResponse createNewInternal ( CreateNewDraftHolder draftCertificateHolder ) throws ModuleException { } @ Override public InternalModelResponse createNewInternalFromTemplate ( CreateDraftCopyHolder draftCertificateHolder , InternalModelHolder template ) throws ModuleException { } @ Override public Object createNotification ( NotificationMessage notificationMessage ) throws ModuleException { } @ Override public ModuleContainerApi getModuleContainer ( ) { } @ Override public void setModuleContainer ( ModuleContainerApi moduleContainer ) { } @ Override public void sendCertificateToRecipient ( InternalModelHolder internalModel , String logicalAddress , String recipientId ) throws ModuleException { } @ Override public CertificateResponse getCertificate ( String certificateId , String logicalAddress ) throws ModuleException { } @ Override public void registerCertificate ( InternalModelHolder internalModel , String logicalAddress ) throws ModuleException { } @ Override public InternalModelResponse updateBeforeSave ( InternalModelHolder internalModel , HoSPersonal hosPerson ) throws ModuleException { } @ Override public InternalModelResponse updateBeforeSigning ( InternalModelHolder internalModel , HoSPersonal hosPerson , LocalDateTime signingDate ) throws ModuleException { } @ Override public boolean isModelChanged ( String persistedState , String currentState ) throws ModuleException { } RegisterMedicalCertificateType whenFkIsRecipientThenSetCodeSystemToICD10 ( final RegisterMedicalCertificateType request ) throws ModuleException { } @ Override public String marshall ( String jsonString ) throws ModuleException { } private CertificateResponse convert ( GetMedicalCertificateForCareResponseType response , boolean revoked ) throws ModuleException { } private AktivitetType findAktivitetWithCode ( List < AktivitetType > aktiviteter , Aktivitetskod aktivitetskod ) throws ModuleException { } private void sendCertificateToRecipient ( RegisterMedicalCertificateType request , final String logicalAddress , final String recipientId ) throws ModuleException { if ( ( ! ( isNullOrEmpty ( recipientId ) ) ) && ( recipientId . equalsIgnoreCase ( FK . toString ( ) ) ) ) { request = whenFkIsRecipientThenSetCodeSystemToICD10 ( request ) ; } AttributedURIType address = new AttributedURIType ( ) ; address . setValue ( logicalAddress ) ; try { RegisterMedicalCertificateResponseType response = registerMedicalCertificateClient . registerMedicalCertificate ( address , request ) ; if ( ( response . getResult ( ) . getResultCode ( ) ) != ( ResultCodeEnum . OK ) ) { String message = ( ( response . getResult ( ) . getResultCode ( ) ) == ( ResultCodeEnum . INFO ) ) ? response . getResult ( ) . getInfoText ( ) : ( ( response . getResult ( ) . getErrorId ( ) ) + "<seq2seq4repair_space>:<seq2seq4repair_space>" ) + ( response . getResult ( ) . getErrorText ( ) ) ; <START_BUG> Fk7263ModuleApi . LOG . error ( "Error<seq2seq4repair_space>of<seq2seq4repair_space>occured<seq2seq4repair_space>when<seq2seq4repair_space>sending<seq2seq4repair_space>certificate<seq2seq4repair_space>'{}':<seq2seq4repair_space>{}" , ( ( request . getLakarutlatande ( ) ) != null ? request . getLakarutlatande ( ) . getLakarutlatandeId ( ) : null ) , message ) ; <END_BUG> throw new ExternalServiceCallException ( message ) ; } } catch ( SOAPFaultException e ) { throw new ExternalServiceCallException ( e ) ; } } private Utlatande getInternal ( InternalModelHolder internalModel ) throws ModuleException { } private InternalModelResponse updateInternal ( InternalModelHolder internalModel , HoSPersonal hosPerson , LocalDateTime signingDate ) throws ModuleException { } private InternalModelResponse toInteralModelResponse ( Utlatande internalModel ) throws ModuleException { } }

Fix:
Fk7263ModuleApi . LOG . error ( "Error<seq2seq4repair_space>occured<seq2seq4repair_space>when<seq2seq4repair_space>sending<seq2seq4repair_space>certificate<seq2seq4repair_space>'{}':<seq2seq4repair_space>{}" , ( ( request . getLakarutlatande ( ) ) != null ? request . getLakarutlatande ( ) . getLakarutlatandeId ( ) : null ) , message ) ;