fix keyword protection for the Java API