first_connection
connection = first_connection(resource);
device->state.conn = first_connection(resource)->cstate;
connection = first_connection(adm_ctx->resource);
info->res_role = conn_highest_role(first_connection(resource));
first_connection(device->resource);
conn_highest_role(first_connection(resource));
conn_highest_role(first_connection(resource));