code: public static Permission getPermission(String name, String serviceName, String... actions) {
          PermissionFactory permissionFactory = PERMISSION_FACTORY_MAP.get(serviceName);
          if (permissionFactory == null) {
              throw new IllegalArgumentException("No permissions found for service: " + serviceName);
          }
  
          return permissionFactory.create(name, actions);
      }
docs: Creates a permission
  
  @param name
  @param serviceName
  @param actions
  @return the created Permission
  @throws java.lang.IllegalArgumentException if there is no service found with the given serviceName.