code: public boolean hasNamedPolicy(String ptype, String... params) {
          return hasNamedPolicy(ptype, Arrays.asList(params));
      }
docs: hasNamedPolicy determines whether a named authorization rule exists.
  
  @param ptype the policy type, can be "p", "p2", "p3", ..
  @param params the "p" policy rule.
  @return whether the rule exists.