package processors.availability;

import com.fasterxml.jackson.databind.JsonNode;
import converters.JsonConverter;
import datamodel.HttpResponseForAvailability;
import processors.Processor;

public class HttpBodyFilter implements Processor {

    @Override
    public String process(String textToProcess, JsonNode configuration) throws Throwable {
        HttpResponseForAvailability httpResponseForAvailability = JsonConverter.jsonStringToObject(textToProcess, HttpResponseForAvailability.class);
        return httpResponseForAvailability.getBody();
    }
}

package processors.availability;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
import converters.JsonConverter;
import datamodel.HttpResponseForAvailability;
import processors.Processor;

public class HttpBodyFilter implements Processor {

    @Override
    public String process(String textToProcess, JsonNode configuration) throws Throwable {
        HttpResponseForAvailability httpResponseForAvailability = JsonConverter.jsonStringToObject(textToProcess, HttpResponseForAvailability.class);

        ObjectMapper mapper = new ObjectMapper();
        String[] ignorableFieldNames = { "httpStatusCode"};
        FilterProvider filters = new SimpleFilterProvider()
                .addFilter("httpFilter", SimpleBeanPropertyFilter.serializeAllExcept(ignorableFieldNames));
        ObjectWriter writer = mapper.writer(filters);
        return  writer.writeValueAsString(httpResponseForAvailability);
    }
}

Enhance processor for http response body.
Enhance processor for http response body.
