class PathConverter implements PropertyConverter<Path> {

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

}