Workaround for java version issue.