}
private void setup(FileReference ref) throws IOException {
if (in != null) {
perfData.put(current, System.currentTimeMillis() - start);
source.waitComplete();
in.close();
}
if (ref != null) {
start = System.currentTimeMillis();
source = new StreamSource(more, ref.getHostUUID(), ref.name, bufferSize);