private void removeClientFromResourceMap(ClientInterface clientInterface){
		synchronized(resourcesOfClients){
			Set<String> list  = resourcesOfClients.keySet();
			Iterator<String> iter = list.iterator();
			Vector<String> keysToBeDeleted = null;
			while(iter.hasNext()) {
				String key = iter.next();
				resourcesOfClients.get(key).remove(clientInterface);
				if(resourcesOfClients.get(key).isEmpty()){
					if(keysToBeDeleted != null)
						keysToBeDeleted.add(key);
					else{
						keysToBeDeleted = new Vector<String>();
						keysToBeDeleted.add(key);
					}
				}
			}
			for(String s : keysToBeDeleted)
				resourcesOfClients.remove(s);
		}
	}