Enumeration enum = resourceTypes_.elements(); while (enum.hasMoreElements()) { if (type.equals((String)enum.nextElement())) {
Enumeration en = resourceTypes_.elements(); while (en.hasMoreElements()) { if (type.equals((String)en.nextElement())) {
    public boolean execute(Object o) {      if (o instanceof Task) {	Task task = (Task)o;	if (task.getVerb().equals(Constants.Verb.SUPPLY) || 	    task.getVerb().equals(Constants.Verb.PROJECTSUPPLY)) {	  if (task.getParentTaskUID() != null) {	    if (task.getSource().equals(clusterId_)) {	      if (!TaskUtils.isMyRefillTask(task, myOrgName_)) {				// OFTYPE check		PrepositionalPhrase pp =task.getPrepositionalPhrase(Constants.Preposition.OFTYPE) ;		if (pp != null) {		  Object obj = pp.getIndirectObject();		  if (obj instanceof String) {		    String type = (String)obj;		    Enumeration enum = resourceTypes_.elements();		    while (enum.hasMoreElements()) {		      if (type.equals((String)enum.nextElement())) {			return true;		      }		    }			  } else {            if (logger.isErrorEnabled()) {              logger.error("ProjectionTasksPredicate unrec OFTYPE :" + obj);            }          }		}	      }	    }	  }	}	