}
public Set<String> getOnline(Set<String> contacts){
Set<String> onlines = new HashSet<String>();
for(String contact:contacts){
Online online = model.find(Online.class, contact);
if(online != null && online.isOnline()){
onlines.add(contact);
}
}
return onlines;
}