persistence.load(agent, user.getId());
}
protected void initPlan(int id, User user, Agent agent) throws Exception {
TaskEngine engine = agent.getEngine();
TaskModelSet modelSet = engine.getModelSet();
QName topName = new QName(modelSet.getDefaultModel().getURI(), top);
TaskPlan topPlan = engine.newTaskPlan(topName);
Task topTask = topPlan.getTask();
for (Map.Entry<String, String> e : topInputs.entrySet())
topTask.setSlotValueScript(e.getKey(), e.getValue(), "init agent");