can_app_be_used
error = can_app_be_used(appRef);
&& (foundAppError = can_app_be_used(&ref)) == B_OK) {