docs: public void addPermissionsXMLPermission(CodeSource codeSource, Permission permission) {
          ArrayList<Permission> permissions = null;
          String codeBase = codeSource.getLocation().getPath();
  
          if (!isRestricted(permission)) {
              if (permissionXMLPermissionMap.containsKey(codeBase)) {
                  permissions = permissionXMLPermissionMap.get(codeBase);
                  permissions.add(permission);
              } else {
                  permissions = new ArrayList<Permission>();
                  permissions.add(permission);
                  permissionXMLPermissionMap.put(codeBase, permissions);
              }
          }
      }