code: public String getChainPolicy() {
      if ((matchReturnValue == ACCEPT) && (noMatchReturnValue == NEUTRAL)) {
        return ACCEPT_ON_MATCH;
      } else if ((matchReturnValue == DENY) && (noMatchReturnValue == NEUTRAL)) {
        return DENY_ON_MATCH;
      } else if ((matchReturnValue == NEUTRAL) && (noMatchReturnValue == ACCEPT)) {
        return ACCEPT_ON_NOMATCH;
      } else if ((matchReturnValue == NEUTRAL) && (noMatchReturnValue == DENY)) {
        return DENY_ON_NOMATCH;
      } else {
        return UNKNOWN_POLICY;
      }
    }
docs: Gets the chain policy string value that matches the current
  settings of matchReturnValue and noMatchReturn value. If the
  current values do not match a known policy setting, then the
  value of UNKNOWN_PLOCY is returned.
  Valid return values for the policy string are defined as
  constants for this class: ACCEPT_ON_MATCH, DENY_ON_MATCH,
  ACCEPT_ON_NOMATCH, DENY_ON_NOMATCH, and UNKNOWN_POLICY.
  
  @return String The policy to use.