@SuppressWarnings("unchecked")
	private List<Message> loadLog(String logRef){
		
		String logName = logPath + logRef;
		List<Message> res = null;
		
		try {
			
			FileInputStream fis = new FileInputStream(logPath + logName);
			ObjectInputStream ois = new ObjectInputStream(fis);
			res = (List<Message>)ois.readObject();
			
			System.out.println("log loaded : " + logRef);
			
			return res;
			
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		System.out.println("log loading failed");
		
		return res;
	}