try {
if (composite == null) {
// this is DownloadMode.NEVER and we are really in pass-through mode, stream directly from adapter
ContentServerPluginContainer pc = ContentManagerHelper.getPluginContainer();
ContentProviderManager adapterMgr = pc.getAdapterManager();
int contentSourceId = pvcs.getPackageVersionContentSourcePK().getContentSource().getId();
bitsStream = adapterMgr.loadPackageBits(contentSourceId, pvcs.getLocation());
} else {
if (composite.isPackageBitsInDatabase()) {
// this is DownloadMode.DATABASE - put the bits in the database
conn = dataSource.getConnection();