System.out.println("Error: domain is not known from user:"+
entity.getUniqueIdentificator()+" and it is discarted: "+contents[i]);
continue;
}
entity.addIdentificatorInCommunities(GlobalModel.getCommunities().get(domain),
new EntityIdentifier(entity.getUniqueIdentificator(),contents[i]));
} else {
String userName = contents[i].substring(0,coincidence);
//System.out.println("iu:"+entity.getUniqueIdentificator()+",u:"+userName);
String domain = findDomain(contents[i].substring(coincidence+3));
//System.out.println("d:"+domain);
if(domain == null) {
System.out.println("Error: domain is not known from user:"+
entity.getUniqueIdentificator()+"-nickname:"+userName+
" and it is discarted: "+contents[i].substring(coincidence+3));
continue;
}
entity.addIdentificatorInCommunities(GlobalModel.getCommunities().get(domain),
new EntityIdentifier(userName,null));
}
}
if(!entity.getIdentificatorInCommunities().isEmpty()) {
GlobalModel.addEntity(entity);
}