class JsonSetConverter implements AttributeConverter<Set, String> {

    @Override
    public String convertToDatabaseColumn(final Set value) {
        try {
            return serializer.writeValueAsString(value);
        } catch (final JsonProcessingException e) {
            log.error("Unable to parse Set - {}. Error - {}", value, e.getMessage(), e);
            throw new FabricManagerException(e);
        }
    }

    public  JsonSetConverter();
    public  JsonSetConverter(final ObjectMapper serializer);

}