List<Listener> findListeners(T urlToListenerContainer,String url){
  List<Listener> foundListener=new ArrayList<Listener>();
  String tUrl=url.contains("?") ? url.substring(0,url.indexOf('?')) : url;
  int index=-1;
  while ((index=tUrl.lastIndexOf('/')) > -1) {
    if (containsKey(urlToListenerContainer,tUrl)) {
      foundListener.addAll(filter(get(urlToListenerContainer,tUrl),url));
    }
    tUrl=tUrl.substring(0,index);
  }
  return foundListener;
}

List < Listener > findListeners ( T urlToListenerContainer , String url ) { List < Listener > foundListener = new ArrayList < Listener > ( ) ; String tUrl = url . contains ( "?" ) ? url . substring ( 0 , url . indexOf ( '?' ) ) : url ; int index = - 1 ; while ( ( index = tUrl . lastIndexOf ( '/' ) ) > - 1 ) { if ( containsKey ( urlToListenerContainer , tUrl ) ) { foundListener . addAll ( filter ( get ( urlToListenerContainer , tUrl ) , url ) ) ; } tUrl = tUrl . substring ( 0 , index ) ; } return foundListener ; }
searches for all listeners which monitored url matches the given url .
