do not use java 7 class
Merge pull request #1517 from marcel-blonk/PLFM-2580

do not use java 7 class