{
logger.finest(String.format("MATCHES!!!%n BEGIN MATCH%n cue: %s%n inputLine: %s%n position: %d%n END MATCH%n%n", cueItem.toString(), convertLineToString(currentLine), tokenOffset));
CueWordAnnotation a = new CueWordAnnotation();
int beginOffset = tokenOffset;
int endOffset = tokenOffset + size - 1;
Location beginLocation = new Location();
beginLocation.setLine(lineNumberOffset + 1);
beginLocation.setTokenOffset(beginOffset);
Location endLocation = new Location();
endLocation.setLine(lineNumberOffset + 1);
endLocation.setTokenOffset(endOffset);
a.setBegin(beginLocation);
a.setEnd(endLocation);
a.setCueWordType(getCueWordType());
a.setCueWordClass(cueItem.getCueWordClass());
a.setCueWordText(constructWordSequenceText(currentLine, beginOffset, endOffset));