account = factory.getAccount("andrunko@gmail.com") cm = factory.getCM("jabber"); foearch (connection, cm->connections()) { if (connection.InspectHandle(connection.GetSelfHandle()) == account.self_handle) { found = TRUE; break; } } if (!found) { connection = cm->requestConnection (...) account.self_handle = connection.InspectHandle(connection.GetSelfHandle()) }