Made Project facet property Java 1.6 instead of 1.7 to solve problem.