}
if (null == bundleGroupIds || bundleGroupIds.length == 0) {
String msg = "Subject [" + subject.getName()
+ "] requires Global CREATE_BUNDLES and VIEW_BUNDLES to create unassigned initial bundle version.";
throw new PermissionException(msg, new BundleNotFoundException()); // set the cause to BNFE, this is helpful to some callers
}
for (int bundleGroupId : bundleGroupIds) {
boolean authzPassed;
if (hasGlobalCreateBundles) {