updt java.rb for new caveats DSL