code: public void setChainPolicy(String policyStr) {
      if (policyStr.equalsIgnoreCase(ACCEPT_ON_MATCH)) {
        matchReturnValue = ACCEPT;
        noMatchReturnValue = NEUTRAL;
      } else if (policyStr.equalsIgnoreCase(DENY_ON_MATCH)) {
        matchReturnValue = DENY;
        noMatchReturnValue = NEUTRAL;
      } else if (policyStr.equalsIgnoreCase(ACCEPT_ON_NOMATCH)) {
        matchReturnValue = NEUTRAL;
        noMatchReturnValue = ACCEPT;
      } else if (policyStr.equalsIgnoreCase(DENY_ON_NOMATCH)) {
        matchReturnValue = NEUTRAL;
        noMatchReturnValue = DENY;
      } else {
        LogLog.error("invalid chainPolicy: " + policyStr);
      }
    }
docs: Sets the match and nomatch return values based on a "policy"
  string.  Valid values for the policy string are defined as
  constants for this class: ACCEPT_ON_MATCH, DENY_ON_MATCH,
  ACCEPT_ON_NOMATCH, DENY_ON_NOMATCH.
  
  @param policyStr The policy to use.