'Converts Rekall _EPROCESS structure to ExportedRekallProcess.'

@staticmethod
def EprocessToExportedRekallProcess(eprocess):

    result = ExportedRekallProcess(pid=eprocess['Cybox']['PID'], parent_pid=eprocess['Cybox']['Parent_PID'], name=eprocess['Cybox']['Name'], creation_time=(eprocess['Cybox']['Creation_Time']['epoch'] * 1000000))
    commandline = eprocess['Cybox']['Image_Info']['Command_Line']
    if isinstance(commandline, basestring):
        result.commandline = commandline
    fullpath = eprocess['Cybox']['Image_Info']['Path']
    if isinstance(fullpath, basestring):
        result.fullpath = fullpath
    trusted_fullpath = eprocess['Cybox']['Image_Info']['TrustedPath']
    if isinstance(trusted_fullpath, basestring):
        result.trusted_fullpath = trusted_fullpath
    return result
