def __gen_keystore_config(self, scenario):
    elements = []
    keystore_config = scenario.get(self.FIELD_KEYSTORE_CONFIG)
    if keystore_config:
        variable_name = keystore_config['variable-name']
        start_index = keystore_config['start-index']
        end_index = keystore_config['end-index']
        preload = keystore_config['preload']
        config = JMX.get_keystore_config_elements(variable_name, start_index, end_index, preload)
        elements.append(config)
        elements.append(etree.Element('hashTree'))
    return elements
def __gen_keystore_config(self, scenario):
    elements = []
    keystore_config = scenario.get(self.FIELD_KEYSTORE_CONFIG)
    if keystore_config:
        variable_name = keystore_config['variable-name']
        start_index = keystore_config['start-index']
        end_index = keystore_config['end-index']
        preload = keystore_config['preload']
        config = JMX.get_keystore_config_elements(variable_name, start_index, end_index, preload)
        elements.append(config)
        elements.append(etree.Element('hashTree'))
    return elements