code: private Map<String, ServiceEndPoint> indexById(Iterable<ServiceEndPoint> endPoints) {
          Map<String, ServiceEndPoint> map = Maps.newHashMap();
          for (ServiceEndPoint endPoint : endPoints) {
              map.put(endPoint.getId(), endPoint);
          }
          return map;
      }
docs: Returns a map of {@link ServiceEndPoint} objects indexed by their ID.