private String chooseFirstOccurence ( String [ ] among_owners , String [ ] within_listgroup , String prior_tableName ) { int index = CStringUtils . indexOf ( within_listgroup , prior_tableName ) ; for ( int i = index - 1 ; i >= 0 ; i -- ) { String closest = within_listgroup [ i ] ; if ( CStringUtils . indexOf ( among_owners , closest ) >= 0 ) { return closest ; } } return null ; }
Choose among the owners that are present within the list group that occurs before the tableName and closest to it