}
InputStream performGetPackageBits(int resourceId, ResourcePackageDetails packageToRetrieve) throws Exception {
// Perform the retrieval
ContentFacet contentFacet = findContentFacet(resourceId);
InputStream contentStream = contentFacet.retrievePackageBits(packageToRetrieve);
// Wrap the content stream for sending to the original ArtifactAgentService caller
// There is no need to check for agent mode here; the method call will wrap appropriately
contentStream = remoteInputStream(contentStream);