class LocalDateTimeConverter implements PropertyConverter<LocalDateTime> {

    @Override
    public LocalDateTime convert(String value, ConversionContext ctx) {
        ctx.addSupportedFormats(getClass(), LocalDateTime.now().toString());
        if(value==null){
            return null;
        }
        try{
            return LocalDateTime.parse(value);
        }catch(Exception e){
            LOG.log(Level.FINEST, e, () -> "Cannot parse LocalDateTime: " + value);
            return null;
        }
    }

}