code: public synchronized Permission find(String name) {
          for (Permission p : permissions) {
              if(p.name.equals(name))
                  return p;
          }
          return null;
      }
docs: Finds a permission that has the given name.