@Override
	public synchronized void unRegisterClient(Trader trader)
			throws RemoteException, RejectedException {
		if (!this.registeredTraders.contains(trader))
			throw new TraderNotExistsException(trader);
		for (Item it : this.itemsOnSale) {
			if (it.getOwner().equals(trader)) {
				this.itemsOnSale.remove(it);
			}
		}
		for (Wish w : this.wishes) {
			if (w.getTrader().equals(trader)) {
				this.itemsOnSale.remove(w);
			}
		}
		this.registeredTraders.remove(trader);
	}