println("        ((" + visitable +") any).jjtAccept(this);"); println("    } else {"); println("      throw new jjtraveler.VisitFailure();"); println("    }"); println("  }");
println("        ((" + visitable +") any).accept(this);"); println("    } else {"); println("      throw new jjtraveler.VisitFailure();"); println("    }"); println("  }");
	private void genVoidVisit() {        String visitable = GenericConstructorGenerator.className(apiName);                //TODO Make the visitor in the else branch a variation point, by adding an instance variable        //in the visitable class which can be set via its constructor method (and per default Failure)        		println("  public void voidVisit(jjtraveler.Visitable any) throws jjtraveler.VisitFailure {");		println("    if (any instanceof " + visitable + ") {");        println("        ((" + visitable +") any).jjtAccept(this);");        println("    } else {");        println("      throw new jjtraveler.VisitFailure();");        println("    }");        println("  }");	}