def compile_transaction_block(self, block):
    elements = []
    controller = JMX._get_transaction_controller(block.label, block.priority_option('force-parent-sample', False), block.include_timers)
    children = etree.Element('hashTree')
    for compiled in self.compile_requests(block.requests):
        for element in compiled:
            children.append(element)
    elements.extend([controller, children])
    return elements
def compile_transaction_block(self, block):
    elements = []
    controller = JMX._get_transaction_controller(block.label, block.priority_option('force-parent-sample', False), block.include_timers)
    children = etree.Element('hashTree')
    for compiled in self.compile_requests(block.requests):
        for element in compiled:
            children.append(element)
    elements.extend([controller, children])
    return elements