} else {
//it is the last element and doesn't have TElement-children
//but leaf as child
doNotDeleteEO = grayPath.getLeaf();
}
TElement tElement = null;
if(TForLoop.isTForLoop(tElementEO)){
tElement = new TForLoop(tElementEO, context, template);
} else if(TIfStatement.isTIfStatement(tElementEO)){
tElement = new TIfStatement(tElementEO, context, template);
} else {