public FeatureStructure createFS(int addr, CASImpl cas) { if (Gold_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Gold_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Gold(addr, Gold_Type.this); Gold_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Gold(addr, Gold_Type.this); } };
new Gold(jCas, brGold.getBegin(), brGold.getEnd()) .addToIndexes();