public FeatureStructure createFS(int addr, CASImpl cas) { if (CellTypeProteinConcentration_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = CellTypeProteinConcentration_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new CellTypeProteinConcentration(addr, CellTypeProteinConcentration_Type.this); CellTypeProteinConcentration_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new CellTypeProteinConcentration(addr, CellTypeProteinConcentration_Type.this); } };
CellTypeProteinConcentration ctpc = new CellTypeProteinConcentration( jCas); ctpc.setCelltype(cts.get(0));