@Override
  public void getNext(CAS aCAS) throws IOException, CollectionException {
    JCas jcas;
    try {
      jcas = aCAS.getJCas();
    } catch (CASException e) {
      throw new CollectionException(e);
    }
    String text = contents.elementAt(curLine++);  
    sentence s = new sentence(jcas);
    String[] items = text.split(" ");
    s.setId(items[0].trim());
    s.setText(text.substring(items[0].length()+1, text.length()));
    s.addToIndexes();
  }