fix for java 8 nashorn