class ServiceData {

    public boolean addEndpoint(final Endpoint endpoint) {
        if (endpoint == null) {
            throw new IllegalArgumentException("Endpoint can not be null");
        }
        synchronized (syncObject) {
            if (endpoints.containsKey(endpoint.getName())) {
                return false;
            }
            endpoints.put(endpoint.getName(), endpoint);
        }
        return true;
    }

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

}