public TokenGroup(TokenStream tokenStream) {offsetAtt = tokenStream.addAttribute(OffsetAttribute.class);termAtt = tokenStream.addAttribute(CharTermAttribute.class);}

public TokenGroup(TokenStream tokenStream){offsetAtt = tokenStream.AddAttribute<IOffsetAttribute>();termAtt = tokenStream.AddAttribute<ICharTermAttribute>();}
