public void setConnectionType(ConnectionType type) {
        if (type == null) {
            throw new IllegalArgumentException("The argument may not be null.");
        }

        connectionType = type;
    }