code: private void newPermissions(
              final ApplicationPermissionRule rule,
              final ApplicationPermissionMode mode,
              final ApplicationFeatureType featureType,
              final Iterable<String> featureFqns) {
  
          if(featureFqns == null) {
              return;
          }
  
          ApplicationRole securityRole = applicationRoleRepository.findByName(roleName);
          if(securityRole == null) {
              securityRole = applicationRoleRepository.newRole(roleName, roleDescription);
          }
          for (String featureFqn : featureFqns) {
              // can't use role#addPackage because that does a check for existence of the package, which is
              // not guaranteed to exist yet (the SecurityFeatures#init() may not have run).
              applicationPermissionRepository.newPermissionNoCheck(
                      securityRole,
                      rule,
                      mode,
                      featureType, featureFqn);
          }
      }
docs: region > helpers