if ((a instanceof PhysicalAsset) || ((a instanceof ALPAsset) && (((ALPAsset)a).hasPersonPG()))) {
if ((a instanceof PhysicalAsset) || (a instanceof Person)) {
  protected static UnaryPredicate getInterestingTasksPred() {    return new UnaryPredicate()       {        public boolean execute(Object o) {          if (o instanceof Task) {            Task task = (Task)o;            Object pe = task.getPlanElement();            // BEGIN "IMPLIED" FIX            if (pe instanceof Allocation) {              Asset a = ((Allocation)pe).getAsset();              if ((a instanceof PhysicalAsset) ||                  ((a instanceof ALPAsset) &&                   (((ALPAsset)a).hasPersonPG()))) {                Verb v = task.getVerb();                if ((Constants.Verb.Transport).equals(v) ||                    (Constants.Verb.TransportationMission).equals(v) ||                    (Constants.Verb.Supply).equals(v)) {                  if (task.getPrepositionalPhrase("IMPLIED") == null) {                    // an interesting task!                    return true;                  }                }              }            }            /*             * DISABLE FOR "IMPLIED" FIX            if (pe instanceof Allocation) {              Allocation alloc = (Allocation)pe;              if (alloc.getAsset()  instanceof PhysicalAsset)                 return true;	      else if (alloc.getAsset() instanceof ALPAsset &&		       ((ALPAsset)alloc.getAsset()).hasPersonPG())		return true;            }            */          }          return false;        }      };  }