* Constructs a string representation of the reference loop
* @return a string representing the reference loop
*/
public String getReferenceString() {
StringBuilder retval = new StringBuilder();
Identifiable target = null;
for (Identifiable i : referenceList) {
if (target == null) target = i;
retval.append(i.getId());
retval.append(" -> ");
}
if (retval.length() > 0) retval.append(target.getId());
return retval.toString();
}