uptick java 1.6 -> 1.7
implement pattern matching