if ( o instanceof Task ) { Task task = (Task) o; boolean hasTransport = task.getVerb().equals (Constants.Verb.TRANSPORT); boolean isReserved   = (task.getPrepositionalPhrase (START) != null); if (hasTransport && isReserved) return true;  if( (task.getVerb().equals(Constants.Verb.PROJECTSUPPLY)) && (myTaskUtils.isLevel2(task))) { boolean isReadyForTransport=(myTaskUtils.isReadyForTransport(task));  if((isReadyForTransport) && logger.isDebugEnabled()){ logger.debug("AmmoProjectionExpanderPlugin:isLevel2 ReadyForTransport=" + isReadyForTransport); } return isReadyForTransport; }  return (  ((UTILGenericListener) myListener).interestingTask (task)); } return false; }
return ( o instanceof Task ); }
          public boolean execute(Object o) {            if ( o instanceof Task ) {              Task task = (Task) o;              boolean hasTransport = task.getVerb().equals (Constants.Verb.TRANSPORT);              boolean isReserved   = (task.getPrepositionalPhrase (START) != null);              if (hasTransport && isReserved) return true;              if(// (task.getPlanElement() == null ) &&  ** Now dealing with changed tasks **                  (task.getVerb().equals(Constants.Verb.PROJECTSUPPLY)) &&                  (myTaskUtils.isLevel2(task))) {                boolean isReadyForTransport=(myTaskUtils.isReadyForTransport(task));                //TODO: MWD delete this debug line                if((isReadyForTransport) &&                    logger.isDebugEnabled()){                  logger.debug("AmmoProjectionExpanderPlugin:isLevel2 ReadyForTransport=" + isReadyForTransport);                }                return isReadyForTransport;              }              return (// (task.getWorkflow() == null )  &&   ** Now dealing with changed tasks **                      // (task.getPlanElement() == null ) &&                  ((UTILGenericListener) myListener).interestingTask (task));            }            return false;          }