private String pickCodebase(EntryClass eclass,ArrayList svcs,long now) throws ClassNotFoundException {
  for (int i=svcs.size(); --i >= 0; ) {
    SvcReg reg=(SvcReg)svcs.get(i);
    if (reg.leaseExpiration <= now)     continue;
    EntryRep[] sets=reg.item.attributeSets;
    for (int j=sets.length; --j >= 0; ) {
      if (eclass.equals(sets[j].eclass))       return sets[j].codebase;
    }
  }
  throw new ClassNotFoundException();
}

private String pickCodebase ( EntryClass eclass , ArrayList svcs , long now ) throws ClassNotFoundException { for ( int i = svcs . size ( ) ; -- i >= 0 ; ) { SvcReg reg = ( SvcReg ) svcs . get ( i ) ; if ( reg . leaseExpiration <= now ) continue ; EntryRep [ ] sets = reg . item . attributeSets ; for ( int j = sets . length ; -- j >= 0 ; ) { if ( eclass . equals ( sets [ j ] . eclass ) ) return sets [ j ] . codebase ; } } throw new ClassNotFoundException ( ) ; }
return any valid codebase for an entry of the exact given class .
