Made plugin compatible to build with java 1.6