private void createFieldAnnotation(JCas jcas,String localName,int begin,int end){
  String fieldName=null;
  if (useSubstitution) {
    fieldName=substitution.get(localName);
    if (fieldName == null) {
      fieldName=localName;
    }
  }
 else {
    fieldName=localName;
  }
  Field field=new Field(jcas,begin,end);
  field.setName(fieldName);
  field.addToIndexes();
}

private void createFieldAnnotation ( JCas jcas , String localName , int begin , int end ) { String fieldName = null ; if ( useSubstitution ) { fieldName = substitution . get ( localName ) ; if ( fieldName == null ) { fieldName = localName ; } } else { fieldName = localName ; } Field field = new Field ( jcas , begin , end ) ; field . setName ( fieldName ) ; field . addToIndexes ( ) ; }
create a field annotation for the given element name at the given location . if substitutions are used , the field is created using the substituted name .
