Ensuring Java 1.6 compatibility. This is the only location in the code that is not compatible to Java 1.6. Switch did not support Strings yet