code: public Integer addTokenAnnotation(String tokenString, String fileId, Integer sentId, Integer tokId, Integer positionCounter, JCas jcas){
  		Token token = new Token(jcas);
  		if (!((sentId == newTokSentNumber) && (tokId == newTokSentNumber))){
  			if(USE_SPACES) // in chinese, there are no spaces, so the +1 correction is unnecessary
  				positionCounter = positionCounter + 1;
  		}
  		token.setBegin(positionCounter);
  		positionCounter = positionCounter + tokenString.length();
  		token.setEnd(positionCounter);
  		token.setTokenId(tokId);
  		token.setSentId(sentId);
  		token.setFilename(fileId);
  		token.addToIndexes();
  		
  		String id = fileId+"_"+sentId+"_"+tokId;
  		hmToken.put(id, token);
  		
  		return positionCounter;
    }
docs: Add token annotation to jcas
  @param tokenString
  @param fileId
  @param tokId
  @param positionCounter
  @param jcas
  @return