Don't use java 1.8 API