class ServiceData {

    public boolean removeEndpoint(final Endpoint endpoint) {
        if (endpoint == null) {
            throw new IllegalArgumentException("Endpoint can't be null");
        }
        synchronized (syncObject) {
            if (!endpoints.containsKey(endpoint.getName())) {
                return false;
            }
            endpoints.remove(endpoint.getName());
        }
        return true;
    }

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

}