class ServiceData {

    public Endpoint getEndpoint(final String name) {
        synchronized (syncObject) {
            for (final String epName : endpoints.keySet()) {
                if (epName.equals(name)) {
                    return endpoints.get(name);
                }
            }
        }
        return null;
    }

    public  ServiceData();
      ServiceData(final List<Endpoint> endpointList);

}