KFSUPGRADE-994 - update toCopyFromGateway to use AppDocStatus instead of
StatusCode