code: public CMARole addPolicy(CMAPolicy policy) {
      if (policies == null) {
        policies = new ArrayList<CMAPolicy>();
      }
  
      policies.add(policy);
      return this;
    }
docs: Add a new policy to the existing ones, creating a new list if needed.
  
  @param policy the policy to be added.
  @return this instance for chaining.