InstalledPackage oldPackage = getBackingContent();
ContentManagerRemote contentManager = remoteClient.getProxy(ContentManagerRemote.class);
ContentUploader contentUploader = new ContentUploader(contentManager);
String temporaryContentHandle = contentUploader.upload(file);
PackageVersion pv = contentManager.createPackageVersionWithDisplayVersion(remoteClient.getSubject(),
oldPackage.getPackageVersion().getGeneralPackage().getName(), oldPackage.getPackageVersion()
.getGeneralPackage().getPackageType().getId(), packageVersion, displayVersion, oldPackage
.getPackageVersion().getArchitecture().getId(), temporaryContentHandle);