Java8 class name workaround