if (uploadResult.getExistingDependencies() != null) {
for (CXmlStructureFile dep : uploadResult.getExistingDependencies()) {
existingDependencies.add(ServerFile.fromPathAndHash(dep.getPath(), dep.getMD5()));
}
}
ServerFileUploadResult result = new ServerFileUploadResult(server, structureFile, uploadResult
.getMissingStructureFiles(), existingDependencies);
callback.fileWasUploaded(result);
} catch (RemoteException e) {
callback.caught(convert(e));