Using properties in switch statement cases
by Abhijeet Kashnia
An interesting link here:
This discussion concludes that in a switch, there is no way to assign a case statement with a value from a property file. That's because the case statement has to be known at compile time, while the property file can only be read at run time.
So, you can only replace the switch with an if else block. Seems like there is no other way out.