class PaymentInitiationHeadersBuilder extends AbstractHeadersBuilder {

    public ResponseHeaders buildInitiatePaymentHeaders(@Nullable String authorisationId, @NotNull String selfLink, @NotNull NotificationModeResponseHeaders notificationHeaders) {
        ResponseHeaders.ResponseHeadersBuilder responseHeadersBuilder = ResponseHeaders.builder()
                                                                            .notificationSupport(notificationHeaders.getAspspNotificationSupport())
                                                                            .notificationContent(notificationHeaders.getAspspNotificationContent());
        if (authorisationId == null) {
            return responseHeadersBuilder
                       .location(selfLink)
                       .build();
        }

        ScaApproach scaApproach = scaApproachResolver.getScaApproach(authorisationId);
        return responseHeadersBuilder
                   .aspspScaApproach(scaApproach)
                   .location(selfLink)
                   .build();
    }

    @Autowired public  PaymentInitiationHeadersBuilder(ScaApproachResolver scaApproachResolver);

}