def compile_foreach_block(self, block):
    '\n        :type block: ForEachBlock\n        '
    elements = []
    controller = JMX._get_foreach_controller(block.input_var, block.loop_var)
    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
:type block: ForEachBlock
def compile_foreach_block(self, block):
    '\n        \n        '
    elements = []
    controller = JMX._get_foreach_controller(block.input_var, block.loop_var)
    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