subject = ((Source)iter.next()).getSubjectByIdentifier(displayId);
Source source = (Source)(iter.next()); subject = source.getSubjectByIdentifier(displayId);
 public Subject getSubjectByDisplayId(String subjectTypeId, String displayId)     throws ObjectNotFoundException {   Subject subject = null;   for (Iterator iter = getSources(subjectTypeId).iterator(); iter.hasNext(); ) {    try {      subject = ((Source)iter.next()).getSubjectByIdentifier(displayId);    }    catch (SubjectNotFoundException snfe) {        // Don't do anything since we may find the subject        // in other sources.    }   }  if (subject == null) {    throw new ObjectNotFoundException("Unable to find Subject by display ID.");  }   return subject; }