identityFilter.setViewerIdentity(currentIdentity);
Identity[] result;
if (PENDING_STATUS.equals(typeOfRelation)) {
ListAccess<Identity> listAccess = getRelationshipManager().getOutgoingByFilter(currentIdentity, identityFilter);
result = listAccess.load(0, (int)SUGGEST_LIMIT);
<BUG>addToNameList(nameList, result);
} else if (INCOMING_STATUS.equals(typeOfRelation)) {</BUG>
ListAccess<Identity> listAccess = getRelationshipManager().getIncomingByFilter(currentIdentity, identityFilter);
result = listAccess.load(0, (int)SUGGEST_LIMIT);
<BUG>addToNameList(nameList, result);
} else if (CONFIRMED_STATUS.equals(typeOfRelation)){</BUG>
ListAccess<Identity> listAccess = getRelationshipManager().getConnectionsByFilter(currentIdentity, identityFilter);

identityFilter.setViewerIdentity(currentIdentity);
Identity[] result;
if (PENDING_STATUS.equals(typeOfRelation)) {
ListAccess<Identity> listAccess = getRelationshipManager().getOutgoingByFilter(currentIdentity, identityFilter);
