public static Rule getRule(final Rule firstParam, final Rule secondParam) {
    return new AndRule(firstParam, secondParam);
  }
Get rule.

@param firstParam  first rule.
@param secondParam second rule.
@return Rule that evaluates true only if both rules are true.
olv-core/src/main/java/pl/otros/logview/accept/query/org/apache/log4j/rule/AndRule.java