class DoubleConverter implements AtlasConverter<Double> {

    @AtlasConversionInfo(sourceType = FieldType.DOUBLE, targetType = FieldType.BOOLEAN, concerns = {
            AtlasConversionConcern.CONVENTION })
    public Boolean toBoolean(Double value) {
        if (value == null) {
            return null;
        }
        return value == 0.0 ? Boolean.FALSE : Boolean.TRUE;
    }

}