class StubResponseHeaderConfigurer {

    public void setResponseContentTypeAndStatus(final HttpServletResponse resp, final ResponseDescriptorDTO responseDescriptorDTO) {
        ResponseDescriptorAttributes attributes = responseDescriptorDTO.getResponseDescriptor().getAttributes();
        resp.setContentType(attributes.getMimeType());
        resp.setStatus(Integer.valueOf(attributes.getCode()));
    }

}