downgrade code compatibility to java 6 for deployment test