apply java 7