* @throws TemplateException
*/
private void writeOutTypeCondition(BytecodeContext bc) throws BytecodeException {
WhileVisitor whileVisitor = new WhileVisitor();
loopVisitor=whileVisitor;
whileVisitor.visitBeforeExpression(bc);
CastBoolean.toExprBoolean(getAttribute("condition").getValue()).writeOut(bc, Expression.MODE_VALUE);
whileVisitor.visitAfterExpressionBeforeBody(bc);
getBody().writeOut(bc);
whileVisitor.visitAfterBody(bc,getEnd());