if(TPlaceholder.isTPlaceholder(tObject)){
return;
} else if(TForLoop.isTForLoop(tObject)){
log.debug("Evaluating loop");
TForLoop loop = new TForLoop(tObject,currentContext,template);
ReferenceFromParent pReferenceFromParent = loop.getSetToBeIterated().getReferenceFromParent();
if(pReferenceFromParent instanceof Reference2Attribute){
throw new ValidationException("For-loop references an attribute and no list of elements! " + Util.getFullName(loop.getTElement()));
} else if(!((Reference2Element)pReferenceFromParent).getReferenceToChildren().isMany()){
throw new ValidationException("For-loop doesn't reference a list of elements! " + Util.getFullName(loop.getTElement()));
}
List<?> parameterList = (List<?>)pReferenceFromParent.getReferencedValue();
//FOR-LOOP
for(Object o : parameterList){
// if(!(o instanceof EObject)){
// throw new ValidationException("For-loop methodCall ("+loop.getSetToBeIterated().toString()+") does not return a list of ModelElements but Attributes");
// }