@SuppressWarnings("rawtypes")
    private void dealWithObjectReceived (String inType, Object inObj) {

        Class c = null;
        try {
            c = Class.forName(inType);
        }
        catch (ClassNotFoundException e) {
            System.out.println("Client's object type is not found...");
            return;
        }
        receivedObj = c.cast(inObj);
        System.out.println("I received object \"" + c.cast(inObj) + "\" from the client!");

        if (inType.equals("java.lang.String")) {
            String received = (String) receivedObj;
            nameToChatBox.get(received.split(":")[0]).addText(received);
        }
    }