do not use java 7 class