public List<ServerFile> getAvailableFiles() {
return availableFiles.get();
}
public void setAvailableFiles(ServerFileFolder[] folders) {
ServerFile oldSelection = getSelectedServerFile();
setSelectedServerFile(null);
List<ServerFile> files = applyServerFileFilter(folders);
availableFiles.set(files);
if (oldSelection != null) {
restoreOldSelection(oldSelection, files);