function addConnection(connection, appendChild) {

        // Do not add connection if filter says "no"
        if (connection_filter && !connection_filter(connection))
            return;

        group_view.connections[connection.id] = connection;

        // Add connection to connection list or parent group
        var guacui_connection = new GuacUI.ListConnection(connection);
        GuacUI.addClass(guacui_connection.getElement(), "list-item");

        // If multiselect, add checkbox for each connection
        if (multiselect) {

            var connection_choice = GuacUI.createElement("div", "choice");
            var connection_checkbox = GuacUI.createChildElement(connection_choice, "input");
            connection_checkbox.setAttribute("type", "checkbox");
            
            connection_choice.appendChild(guacui_connection.getElement());
            appendChild(connection_choice);

            function fire_connection_change(e) {

                // Prevent click from affecting parent
                e.stopPropagation();

                // Fire event if handler defined
                if (group_view.onconnectionchange)
                    group_view.onconnectionchange(connection, this.checked);

            }

            // Fire change events when checkbox modified
            connection_checkbox.addEventListener("click",  fire_connection_change, false);
            connection_checkbox.addEventListener("change", fire_connection_change, false);

            // Add checbox to set of connection checkboxes
            connection_checkboxes[connection.id] = connection_checkbox;

        }
        else
            appendChild(guacui_connection.getElement());

        // Fire click events when connection clicked
        guacui_connection.onclick = function() {
            if (group_view.onconnectionclick)
                group_view.onconnectionclick(connection);
        };

    }
Adds the given connection via the given appendChild() function.

@param {GuacamoleService.Connection} connection The connection to add.
@param {Function} appendChild A function which, given an element, will
                              add that element the the display as
                              desired.