public void register(String pattern,String result){
  Assert.isTrue(matchers.size() == results.size());
  pattern=pattern.trim();
  if (pattern.length() == 0) {
    return;
  }
  matchers.add(new StringMatcher(pattern,false,false));
  results.add(result);
}

public void register ( String pattern , String result ) { Assert . isTrue ( matchers . size ( ) == results . size ( ) ) ; pattern = pattern . trim ( ) ; if ( pattern . length ( ) == 0 ) { return ; } matchers . add ( new StringMatcher ( pattern , false , false ) ) ; results . add ( result ) ; }
register a pattern and an associated string
