Object value = iter.next(); if (value.equals(relation)) { try { return getCustodianByPrimaryKey(value); } catch (FinderException fe) { log(fe);
String key = (String) iter.next(); if(key.startsWith(METADATA_RELATION)){ String value = (String) metadataAttributes.get(key); if (value.equals(relation)) { try { String custPk = key.substring(METADATA_RELATION.length(),key.length()); Integer custId = new Integer(custPk);  return getCustodianByPrimaryKey(custId); } catch (FinderException fe) { log(fe); }
	public Custodian getCustodian(String relation) {		Collection metadataValues = getMetaDataAttributes().values();		if (metadataValues != null) {			Iterator iter = metadataValues.iterator();			while (iter.hasNext()) {				Object value = iter.next();				if (value.equals(relation)) {					try {						return getCustodianByPrimaryKey(value);					}					catch (FinderException fe) {						log(fe);					}				}			}		}				return null;	}