public FormIndex stepIndexOut(FormIndex index){
  if (index.isTerminal()) {
    return null;
  }
 else {
    return new FormIndex(stepIndexOut(index.getNextLevel()),index);
  }
}

public FormIndex stepIndexOut ( FormIndex index ) { if ( index . isTerminal ( ) ) { return null ; } else { return new FormIndex ( stepIndexOut ( index . getNextLevel ( ) ) , index ) ; } }
used to go up one level in the formindex . that is , if you ' re at 5_0 , 1 ( the second question in a repeating group ) , this method will return a forminex of 5_0 ( the start of the repeating group ) . if your at index 16 or 5_0 , this will return null ;
