protected static void initEndpointInfo(List<EndpointInfo> endpoints){
  for (int i=0; i < endpoints.size(); i++) {
    initEndpointInfo(endpoints.get(i));
  }
}

protected static void initEndpointInfo ( List < EndpointInfo > endpoints ) { for ( int i = 0 ; i < endpoints . size ( ) ; i ++ ) { initEndpointInfo ( endpoints . get ( i ) ) ; } }
this method initialises the list of endpoint information .
