PrepositionalPhrase pp = task.getPrepositionalPhrase(org.cougaar.planning .Constants.Preposition.AS); if (pp == null) return false; Collection roles = (Collection) pp.getIndirectObject(); if (roles == null) return false;  return roles.contains(org.cougaar.glm.ldm.Constants.Role.OPERATIONALSUBORDINATE); }
PrepositionalPhrase pp = task.getPrepositionalPhrase(org.cougaar.planning .Constants.Preposition.AS); if (pp == null) { return false; }  Collection roles = (Collection) pp.getIndirectObject();  if (roles == null) { return false; } else {  return roles.contains(org.cougaar.glm.ldm.Constants.Role.OPERATIONALSUBORDINATE); } }
    public boolean execute (Object o) {      if (o instanceof Task) {	Task task = (Task) o;	Verb verb = task.getVerb();        // Get the ReportForDuty task where this Agent is reporting to         //  its OperationalSuperior        // -- not its SupportSuperior or AdministrativeSuperior        if (Constants.Verb.ReportForDuty.equals(verb)) {	PrepositionalPhrase pp = 	  task.getPrepositionalPhrase(org.cougaar.planning				      .Constants.Preposition.AS);	if (pp == null)	  return false;	Collection roles = (Collection) pp.getIndirectObject();	if (roles == null)	  return false;	// This collection should contain "Subordinate"	return roles.contains(org.cougaar.glm.ldm.Constants.Role.OPERATIONALSUBORDINATE);        }      }      return false;    }