fDocPath
BPath fDocPath;
if (docRef != NULL && fDocPath.SetTo(docRef) == B_OK) {
fArgs[fArgc - 1] = fDocPath.Path();
fDocPath.Unset();