while (children.hasMoreElements())
{
JMeterTreeNode templateNode= (JMeterTreeNode)children.nextElement();
if (templateNode.isEnabled())
{
TestElement template= templateNode.getTestElement();
if (template instanceof Timer)
{
TestElement timer= (TestElement)template.clone();
try
{
replacer.undoReverseReplace(timer);
model.addComponent(timer, node);
}