class FileConverter implements PropertyConverter<File> {

    @Override
    public File convert(String value, ConversionContext ctx) {
        if(value==null || value.isEmpty()){
            return null;
        }
        ctx.addSupportedFormats(getClass(),"<File>");
        String trimmed = Objects.requireNonNull(value).trim();
        try {
            return new File(trimmed);
        } catch (Exception e) {
            LOG.log(Level.FINE, "Unparseable File Name: " + trimmed, e);
        }
        return null;
    }

}