Fixed default maven build with 1.6 sources version. (Changed switch by string value to switch by enum)