public String process(Item item) throws ProcessException {
  int count=0;
  Item inPhrase=SUB_PHRASE_PATH.findItem(item);
  for (Item p=inPhrase; p != null; p=p.getPrevious()) {
    count++;
  }
  return Integer.toString(rail(count));
}

public String process ( Item item ) throws ProcessException { int count = 0 ; Item inPhrase = SUB_PHRASE_PATH . findItem ( item ) ; for ( Item p = inPhrase ; p != null ; p = p . getPrevious ( ) ) { count ++ ; } return Integer . toString ( rail ( count ) ) ; }
performs some processing on the given item .
