'convert data from import job into a dictionary
@param importjob: S3ImportJob instance
@return: data of S3ImportJob into a dictionary'

def __importjob2data(self, importjob):

    s3ocrdata = Storage()
    import_item_dict = importjob.items
    for eachitem in import_item_dict.keys():
        import_item = import_item_dict[eachitem]
        if (import_item.data and (len(import_item.data) > 0)):
            s3ocrdata[str(import_item.table)] = import_item.data
    return s3ocrdata
