/** * Constructor. * * @param preResponse PreResponse object to be serialized * @param responseContextMapper ObjectMapper instance with custom configuration to preserve the types */ public PreResponseSerializationProxy(PreResponse preResponse, ObjectMapper responseContextMapper) { this.resultSetSerializationProxy = new ResultSetSerializationProxy(preResponse.getResultSet()); this.responseContext = getSerializedResponseContext(preResponse.getResponseContext(), responseContextMapper); }