public void initialize() {
   lock = LockFactory.makeLock("BaseBehaviorLock");
   long oid = obj.getOid();
   SubjectFilter filter = new SubjectFilter(oid);
   filter.addType(Behavior.MSG_TYPE_COMMAND);
   filter.addType(WorldManagerClient.MSG_TYPE_MOB_PATH_CORRECTION);
   pathState = new PathState(oid, pathObjectTypeName, true);
   commandSub = Engine.getAgent().createSubscription(filter, this);
 }
 public void activate() {
   if (Log.loggingDebug) log.debug("in activate: this " + this);
   // subscribe for some messages
   SubjectFilter filter = new SubjectFilter(getPlayerOid());
   filter.addType(InventoryClient.MSG_TYPE_INV_UPDATE);
   filter.addType(QuestClient.MSG_TYPE_CONCLUDE_QUEST);
   sub = Engine.getAgent().createSubscription(filter, this);
   makeDeliveryItems();
   updateQuestLog();
   updateObjectiveStatus();
   // updateQuestObjectives();
   log.debug("QuestPlugin activated");
 }