@Override
	public String[] getMessages(int nbIgnore)  throws RemoteException {
		
		synchronized(messages) {
			
			String[] res = new String[messages.size() - nbIgnore];
			
			for(int i=nbIgnore, max = messages.size(); i<max; i++) {
				res[i-nbIgnore] = messages.get(i);
			}
			
			return res;
		}
	}