Make it compatible with java version 1.6