class DateConverter implements Converter<Date, Long> {

    @NonNull
    @Override
    public Long toSupported(@Nullable Date converted) {
        if (converted == null) {
            return DEFAULT_TIMESTAMP;
        }
        return converted.getTime();
    }

}