class WorkerParametersSerializer extends JsonSerializer<AbstractWorkerParameters> {

    @Override
    public void serialize(AbstractWorkerParameters value, JsonGenerator gen,
        SerializerProvider serializers)
        throws IOException, JsonProcessingException {
        gen.writeStartObject();
        for (final Entry<WorkerParameterName, String> item : value.getMapParameters().entrySet()) {
            gen.writeStringField(item.getKey().name(), item.getValue());
        }
        gen.writeEndObject();
    }

    public  WorkerParametersSerializer();

}