}
public long downloadPackageBits(PackageVersion packageVersion, OutputStream outputStream) {
try {
ContentSourceManagerLocal csm = LookupUtil.getContentSourceManager();
long size = csm.outputPackageVersionBits(packageVersion, outputStream);
return size;
} catch (Exception e) {
log.error("Failed to obtain package version bits for package version: " + packageVersion, e);
throw new WrappedRemotingException(e);
}