if (obj instanceof Task) { return (((Task) obj).getUID().equals (reservedCopy.getParentTaskUID()));
if (!(obj instanceof Task)) return false; Task examinedTask = (Task) obj; if (task.getUID().equals(examinedTask.getUID())) { if (isDebugEnabled()) debug ("skipping self " + examinedTask.getUID()); return false; }   if (!(examinedTask.getVerb ().equals (Constants.Verb.TRANSPORT))) { if (isDebugEnabled()) debug ("skipping non-transport task " + examinedTask.getUID()); return false; }   boolean examinedIsReserved = isReservedTask (examinedTask); if ((!isReserved && !examinedIsReserved) || ( isReserved &&  examinedIsReserved)) { if (isDebugEnabled()) debug ("skipping examined transport task because same type " + examinedTask.getUID() + " and " + task.getUID()); return false; }  if (examinedIsReserved) {  if (!taskInWorkflow (examinedTask, examinedTask.getWorkflow())) { if (isInfoEnabled ()) info ("skipping reserved transport task " + examinedTask.getUID() + " since it's already been removed from it's workflow."); return false;
        public boolean execute (Object obj) {          if (obj instanceof Task) {            return (((Task) obj).getUID().equals (reservedCopy.getParentTaskUID()));          }          else return false;        }