int selRow = table.getSelectedRow();
file = fileChooser.getSelectedFile();
List<ObjectInfo> objects = conn.getObjects(repositoryName);
ObjectInfo selectedObject = (ObjectInfo) objects.toArray()[selRow];
String objectName = selectedObject.getName();
in = conn.retrieve(this.repositoryName, objectName);
DataInputStream dataIn = new DataInputStream(in);
FileOutputStream fileOut = new FileOutputStream(file);