this.finalFilename = file.getName();
/* this should be in a separate function, but we don't want to break
serialization stuff, do we? So clean this up in the next major
ResumeFile version. */
SearchFilter filter = new SearchFilter(getFilterData());
if (filter.getSearchText() == null
|| filter.getSearchText().length() == 0) {
String name = FileHelper.name(getName());
filter.setSearchText(StringHelper.stripExtra(name));
}
}