code: public boolean addNamedPolicy(String ptype, String... params) {
          return addNamedPolicy(ptype, Arrays.asList(params));
      }
docs: AddNamedPolicy adds an authorization rule to the current named policy.
  If the rule already exists, the function returns false and the rule will not be added.
  Otherwise the function returns true by adding the new rule.
  
  @param ptype the policy type, can be "p", "p2", "p3", ..
  @param params the "p" policy rule.
  @return succeeds or not.