private void loadData() { if (this.callId == 0) { String className; Integer id; className = Session.current.tempModel.getClassName(); id = (Integer) Session.current.tempModel.get("id"); // Add id to list to load for edit List<Integer> ids = new ArrayList<Integer>(); if (id != null) { ids.add(id); } // Call (relies on DataLoader returning well with no id) this.callId = DataLoader.loadData( this, className, ids, this.relFields, this.view, new Handler(this), false); } }