Add switch to Java 1.6