return -1;// screams error!
}
private Segment getSegmentContainingOffsets(JCas jcas, int start, int end)
{
JFSIndexRepository indexes = jcas.getJFSIndexRepository();
Iterator segmentItr = indexes.getAnnotationIndex(Segment.type).iterator();
while (segmentItr.hasNext())
{
Segment seg = (Segment) segmentItr.next();