Workaround for java 8 compiler