public static EndpointDescription[] selectByUrl(EndpointDescription[] searchSet,String url){
  List<EndpointDescription> result=new ArrayList<EndpointDescription>();
  for (  EndpointDescription d : searchSet)   if (url.equalsIgnoreCase(d.getEndpointUrl()))   result.add(d);
  return result.toArray(new EndpointDescription[result.size()]);
}

public static EndpointDescription [ ] selectByUrl ( EndpointDescription [ ] searchSet , String url ) { List < EndpointDescription > result = new ArrayList < EndpointDescription > ( ) ; for ( EndpointDescription d : searchSet ) if ( url . equalsIgnoreCase ( d . getEndpointUrl ( ) ) ) result . add ( d ) ; return result . toArray ( new EndpointDescription [ result . size ( ) ] ) ; }
selects all endpoints with the given url . compare is case - insensitive .
