def bronzereporting_process_submission(submission_id):
    try:
        model = g.uow.bronze_reporting.change_submission_state(submission_id, "processing")
        bronze_importer = BronzeImporter(model, submission_id)

        import_thread = ImportThread(bronze_importer)
        import_thread.start()

        return jsonify(model)
    except:
        abort(400)
    def start_import(cls, account_id, uploaded_file_handle, uploaded_file_type):
        importer = EnergyImporter(account_id, uploaded_file_handle, uploaded_file_type)

        import_thread = ImportThread(importer)
        import_thread.start()

        thread_obj = {
            "id": uuid.uuid4(),
            "thread": import_thread
        }
        cls.import_threads.append(thread_obj)
        return thread_obj["id"]