@SuppressWarnings("unchecked")
	public void run() {
		
		System.out.println("[INFO:] TalkTalkIncommingMessagesThread started");
		while(!this.connection.isClosed()) {
	    	try {
	    		
	    		obj = connection.sockObjIn.readObject();
	    		
	    		if(obj == null) {
	    			continue;
	    		}
	    		
	    		if(obj instanceof String) {
	    			processMessage((String) obj);		    		
	    		}
	    		else if(obj instanceof HashMap<?,?>) {
	    			windowController.updateUsersList((HashMap<Integer, String>) obj);
	    		}
	    		
			} catch (IOException e) {
				e.printStackTrace();
			} catch (ClassNotFoundException e) {
				e.printStackTrace();
			}
	    }
		System.out.println("[INFO:] TalkTalkIncommingMessagesThread terminated");
		
	}