// ask for the full bundle version data so we can return that back to the caller; thus we let
// the caller know exactly what the distribution file had inside of it and what we persisted to the DB
BundleVersionCriteria bvCriteria = new BundleVersionCriteria();
bvCriteria.addFilterId(bundleVersion.getId());
bvCriteria.fetchBundle(true);
bvCriteria.fetchBundleFiles(true);
bvCriteria.fetchConfigurationDefinition(true);
bvCriteria.fetchTags(true);
PageList<BundleVersion> bundleVersions = bundleManager.findBundleVersionsByCriteria(subject, bvCriteria);
if (bundleVersions != null && bundleVersions.size() == 1) {
bundleVersion = bundleVersions.get(0);