}
@Override
public void update(Observable obj, Object arg) {
if (arg instanceof ObserverNotifications) {
final ObserverNotifications type = (ObserverNotifications) arg;
final DefaultTreeModel model = (DefaultTreeModel) statisticsTree.getModel();
switch (type) {
case messageSent:
sentCount++;