class Foo { private int x = 6; private int y = 6; public static void main(String[] args) { ##BEGIN CHOICE (a = 1) int x = 11; ##CHOICE (a = 2) int y = 11; ##END CHOICE System.out.println(x); System.out.println(y); } That will at times get translated to: class Foo { private int x = 6; private int y = 6; public static void main(String[] args) { switch(pbosupport.a) { case 1: int x = 11; case 2: int y = 11; default: //Validation elsewhere will always prevent this from being executed since pbosupport.a will always be 1 or 2 and is final. int x = 11; int y = 11; } System.out.println(x); System.out.println(y); }