final RepositoryStore repStore = RepositoryFactory.getRepository().getStore(ARCHIVE_STORE);
// If installing, there may be a license agreement to handle
File licenseFile = newBundle.getLicenseFile();
if (licenseFile != null && licenseFile.exists()) {
LicenseAgreement licenseAgreement = getLicenseAgreement(newBundle, repStore, licenseFile, installedForward);
CoreUtil.requestLicenseAgreement(request.getSession(), licenseAgreement);
}
}