changed switch on the tag name to an if statement so we could downgrade the jdk to 6.