public File getSelectedFile() { String filePath = (String) formModel.getValueModel(formProperty).getValue(); return (filePath == null) ? null : new File(filePath); }