Removed a switch statement, making the plugin java 6 compatible.