code: private static void generateTheMIdAndSetID_forParticipationMention(LinkedList<Term> eventTermList, 
  								       LinkedList<Term> roleTermList, 
  								       Record m,processNAFVariables vars) {
  	LinkedList<Wf> eventWordList = getTheWFListByThereTermsFromTargetList(eventTermList,vars);
  	LinkedList<Wf> roleWordList = getTheWFListByThereTermsFromTargetList(roleTermList,vars);
  
          int charStartOfEvent = Integer.parseInt(eventWordList.getFirst().getOffset());
          int charEndOfEvent = Integer.parseInt(eventWordList.getLast().getOffset()) + Integer.parseInt(eventWordList.getLast().getLength());
          int charStartOfRole = Integer.parseInt(roleWordList.getFirst().getOffset());
          int charEndOfRole = Integer.parseInt(roleWordList.getLast().getOffset()) + Integer.parseInt(roleWordList.getLast().getLength());
  	
  	int beginIndex, endIndex;
  	if (charStartOfEvent < charStartOfRole) {
  	    beginIndex = charStartOfEvent;
  	    endIndex = charEndOfRole;
  	} else {
  	    beginIndex = charStartOfRole;
  	    endIndex = charEndOfEvent;
  	}
          m.add(NIF.BEGIN_INDEX, beginIndex);
          m.add(NIF.END_INDEX, endIndex);
  	
          String muri = vars.news_file_id + "#char=" + beginIndex + "," + endIndex;
          URI mId = new URIImpl(muri);
          m.setID(mId);
      }
docs: /*
  similar to generateTheMIdAndSetID() but specific for ParticipationMention