class StubModeEvaluator {

    public ResponseDescriptorDTO getResponseDescriptorForStubMode(final WilmaHttpRequest request, final OperationMode operationMode) {
        ResponseDescriptorDTO responseDescriptorDTOForStub = null;
        if (operationMode == OperationMode.STUB) {
            if (dialogDescriptorForStub == null) {
                dialogDescriptorForStub = dialogDescriptorFactory.createDialogDescriptorForStubMode(DIALOG_DESCRIPTOR_NAME_FOR_STUB_MODE);
            }
            responseDescriptorDTOForStub = responseDescriptorDtoFactory.createResponseDescriptorDTO(request.getBody(), dialogDescriptorForStub);
            responseDescriptorDtoFactory.modifyResponseDescriptorDTOForStubMode(request, responseDescriptorDTOForStub);
        }
        return responseDescriptorDTOForStub;
    }

}