public String process(Item item) throws ProcessException {
  int count=-1;
  for (Item p=item.getItemAs(Relation.SYLLABLE_STRUCTURE); p != null; p=p.getPrevious()) {
    count++;
  }
  return Integer.toString(rail(count));
}

public String process ( Item item ) throws ProcessException { int count = - 1 ; for ( Item p = item . getItemAs ( Relation . SYLLABLE_STRUCTURE ) ; p != null ; p = p . getPrevious ( ) ) { count ++ ; } return Integer . toString ( rail ( count ) ) ; }
performs some processing on the given item .
