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);
List<BundleFile> bundleFiles = bundleVersion.getBundleFiles();
if (bundleFiles != null && bundleFiles.size() > 0) {