public static Rule getRule(final String field, final String value) {
    if (field.equalsIgnoreCase(LoggingEventFieldResolver.LEVEL_FIELD)) {
      return NotLevelEqualsRule.getRule(value);
    } else {
      return new NotEqualsRule(field, value);
    }
  }
Get new instance.

@param field field
@param value value
@return new instance.
olv-core/src/main/java/pl/otros/logview/accept/query/org/apache/log4j/rule/NotEqualsRule.java