Condition soloCondition = new WordSetCondition(iv_singleOralWordSet, true);
Condition specificWordCondition = new WordSetCondition(
iv_specifiedOralWordSet, false);
startState.addTransition(new TextValueCondition("a", true),
leftAbbreviateState);
startState.addTransition(new TextValueCondition("p", true),
leftAbbreviatePState);
startState.addTransition(initialMiddleTextCondition, leftAbbreviateState);
startState.addTransition(rangeCombineCondition, leftDosagesState);
startState.addTransition(soloCondition, endState);
startState.addTransition(specificWordCondition, endState);
startState.addTransition(new AnyCondition(), startState);
leftAbbreviatePState.addTransition(firstPODotCondition, firstDotPState);
leftAbbreviatePState.addTransition(new AnyCondition(), startState);
firstDotPState.addTransition(soloCondition, endState);
firstDotPState.addTransition(new TextValueCondition("o", true),
rightAbbreviatePOState);
firstDotPState.addTransition(new AnyCondition(), startState);
leftAbbreviateState.addTransition(firstMiddleTextCondition,
middleATextState);