code: public static void addPermission(Permission perm)
    {
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
  
      addPermission(perm, loader);
    }
docs: Adds a permission to the current environment.
  
  @param perm the permission to add.
  
  @return the old attribute value