'Converts Process to ExportedProcess.'

def Convert(self, metadata, process, token=None):

    result = ExportedProcess(metadata=metadata, pid=process.pid, ppid=process.ppid, name=process.name, exe=process.exe, cmdline='    '.join(process.cmdline), ctime=process.ctime, real_uid=process.real_uid, effective_uid=process.effective_uid, saved_uid=process.saved_uid, real_gid=process.real_gid, effective_gid=process.effective_gid, saved_gid=process.saved_gid, username=process.username, terminal=process.terminal, status=process.status, nice=process.nice, cwd=process.cwd, num_threads=process.num_threads, user_cpu_time=process.user_cpu_time, system_cpu_time=process.system_cpu_time, cpu_percent=process.cpu_percent, rss_size=process.RSS_size, vms_size=process.VMS_size, memory_percent=process.memory_percent)
    return [result]
