serverService.preLoadRemoteContent(contextImpl.getResourceId(), packageDetailsKey);
outputStream = remoteOutputStream(outputStream);
long count = 0;
if (resourceExists) {
count = serverService.downloadPackageBitsGivenResource(contextImpl.getResourceId(), packageDetailsKey,
outputStream);
} else {
// TODO: Figure out how to support this; the APIs require the resource to get the bits
}
return count;