class StubResponseHeaderConfigurer {

    public void addWilmaInfoToResponseHeader(final HttpServletRequest req, final HttpServletResponse resp, final String dialogDescriptorName) {
        String wilmaSequence = req.getHeader(WilmaHttpEntity.WILMA_SEQUENCE_ID);

        if (wilmaSequence != null) {
            resp.addHeader(WilmaHttpEntity.WILMA_SEQUENCE_ID, wilmaSequence + "," + dialogDescriptorName);
        } else {
            resp.addHeader(WilmaHttpEntity.WILMA_SEQUENCE_ID, dialogDescriptorName);
        }
    }

}