models for java