class BooleanConverter implements AtlasConverter<Boolean> {

    @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.LONG)
    public Long toLong(Boolean value) {
        return value != null ? (value ? 1L : 0L) : null;
    }

}