public boolean isPrimaryConnection() {
        return sharingProfile == null;
    }
Returns whether this connection record is associated with a connection
being used directly, in the absence of a sharing profile. If a connection
is shared, this will continue to return false for the connection being
shared, but will return true for the connections which join that
connection.

@return
    true if the connection associated with this connection record is
    being used directly, false otherwise.
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/tunnel/ActiveConnectionRecord.java