Enumeration result = null; for (int i = 0; i < policies.length && result == null; i++) { result = getPolicyImplementation(i).loadResources(name);
Vector results = null; for (int i = 0; i < policies.length; i++) { Enumeration result = getPolicyImplementation(i).loadResources(name); if (result != null) { if (results == null) results = new Vector(policies.length); while (result.hasMoreElements()) { Object url = result.nextElement(); if (!results.contains(url)) results.add(url); } }
	public Enumeration doBuddyResourcesLoading(String name) {		if (startLoading(name) == false)			return null;		if (policies == null)			return null;		Enumeration result = null;		for (int i = 0; i < policies.length && result == null; i++) {			result = getPolicyImplementation(i).loadResources(name);		}		stopLoading(name);		return result;	}