@Override
  public void processCas(CAS aCAS) throws ResourceProcessException {
    JCas jcas;
    try {
      jcas = aCAS.getJCas();
    } catch (CASException e) {
      throw new ResourceProcessException(e);
    }
    
    Iterator gIter = jcas.getAnnotationIndex(gene.type).iterator();
    while(gIter.hasNext()){
      gene g = (gene) gIter.next();
      String newline = new String(g.getId()+"|"+g.getBegin()+" "+g.getEnd()+"|"+g.getGeneName()+"\n");
      //System.out.println("Consumer:"+newline);
      try {
        fileWriter.write(newline);
      } catch (IOException e) {
        e.printStackTrace();
      }
    }    
  }