class ComponentSourceConverter implements AttributeConverter<ComponentSource, String> {

    @Override
    public String convertToDatabaseColumn(final ComponentSource componentSource) {
        try {
            return mapper.writeValueAsString(componentSource);
        } catch (final JsonProcessingException e) {
            log.error("Unable to parse component source - {}", e.getMessage(), e);
            throw new FabricManagerException(e);
        }
    }

    public  ComponentSourceConverter();
    public  ComponentSourceConverter(final ObjectMapper mapper);

}