public Collection<EndpointInfo> getEndpointInfos() {

        ArrayList<EndpointInfo> values = new ArrayList<EndpointInfo>();

        Iterator<String> it = getEndpointNames().iterator();
        // for each endpoint name, iterate over it's list of endpoints and add to values
        while (it.hasNext()) {
            List<EndpointInfo> list = endpointInfoMap.get(it.next());
            for (int i = 0; i < list.size(); i++) {
                values.add(list.get(i));
            }
        }
        return Collections.unmodifiableCollection(values);
        //return Collections.unmodifiableCollection(endpointInfoMap.values());
    }
public Collection < EndpointInfo > getEndpointInfos ( ) { ArrayList < EndpointInfo > values = new ArrayList < EndpointInfo > ( ) ; Iterator < String > it = getEndpointNames ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { List < EndpointInfo > list = endpointInfoMap . get ( it . next ( ) ) ; for ( int i = 0 ; i < list . size ( ) ; i ++ ) { values . add ( list . get ( i ) ) ; } } return Collections . unmodifiableCollection ( values ) ; }
/*
return all endpoints