if ((aa.getSchedule() == null) || (!related(transferring)) || (!related(receiving))) { return new ArrayList(); }
  protected Collection convertToRelationships(AssetAssignment aa,                                              Asset transferring,                                              Asset receiving) {    ArrayList relationships = new ArrayList(aa.getSchedule().size());    //Safe because aaSchedule should be an AssignedRelationshipSchedule -     // supports iterator(). (Assumption is that AssignedRelationshipSchedule    // is only used by LPs.)    for (Iterator iterator = aa.getSchedule().iterator();         iterator.hasNext();) {      AssignedRelationshipElement aaRelationship =         (AssignedRelationshipElement)iterator.next();            Relationship localRelationship = ldmf.newRelationship(aaRelationship,                                                            transferring,                                                            receiving);      relationships.add(localRelationship);    }        return relationships;  }