add `require "java"` in model defs