class ResponseDescriptorFactory {

    public ResponseDescriptor createResponseDescriptorForStubMode() {
        Template template = new Template("template-for-stub-mode", TemplateType.TEXT, DEFAULT_ERROR_MESSAGE.getBytes());
        ResponseDescriptorAttributes responseAttributes = new ResponseDescriptorAttributes.Builder().delay(0).code("404")
                .mimeType(MimeType.TEXT.getOfficialMimeType()).template(template).build();
        ResponseDescriptor responseDescriptor = new ResponseDescriptor(responseAttributes, null);
        return responseDescriptor;
    }

}