}
int n = mAvailableChannels.size();
for(int i = 0; i < n; i++) {
Channel channel = mAvailableChannels.get(i);
if (channel.getId().compareTo(channelId) == 0
&& ((dataServiceId != null && channel.getDataServiceProxy().getId()
.compareTo(dataService.getId()) == 0) || dataServiceId == null)
&& ((groupId != null && channel.getGroup().getId().compareTo(groupId) == 0) || groupId == null)
&& ((country != null && channel.getCountry().compareTo(country) == 0) || country == null)) {
return channel;
}
}
/*
* merge-conflict: do we need these lines?