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);
result = listAccess.load(0, (int)SUGGEST_LIMIT);
<BUG>addToNameList(nameList, result);
} else if (SPACE_MEMBER.equals(typeOfRelation)) {  // Use in search space member</BUG>
List<Identity> identities = Arrays.asList(getIdentityManager().getIdentitiesByProfileFilter(OrganizationIdentityProvider.NAME, identityFilter, false).load(0, (int)SUGGEST_LIMIT));
Space space = getSpaceService().getSpaceByUrl(spaceURL);
addSpaceOrUserToList(identities, nameList, space, typeOfRelation, 0);

result = listAccess.load(0, (int)SUGGEST_LIMIT);
nameList.addToNameList(result);
} else if (INCOMING_STATUS.equals(typeOfRelation)) {
ListAccess<Identity> listAccess = getRelationshipManager().getIncomingByFilter(currentIdentity, identityFilter);
result = listAccess.load(0, (int)SUGGEST_LIMIT);
nameList.addToNameList(result);
} else if (CONFIRMED_STATUS.equals(typeOfRelation)){
ListAccess<Identity> listAccess = getRelationshipManager().getConnectionsByFilter(currentIdentity, identityFilter);
result = listAccess.load(0, (int)SUGGEST_LIMIT);
nameList.addToNameList(result);
} else if (SPACE_MEMBER.equals(typeOfRelation)) {  // Use in search space member
List<Identity> identities = Arrays.asList(getIdentityManager().getIdentitiesByProfileFilter(OrganizationIdentityProvider.NAME, identityFilter, false).load(0, (int)SUGGEST_LIMIT));
Space space = getSpaceService().getSpaceByUrl(spaceURL);
addSpaceOrUserToList(identities, nameList, space, typeOfRelation, 0);
