Added safety to prevent another release for Java 7, instead of Java 6