System.out.println("--> ERROR: An error occurred in the naming service:"); ev.getException().printStackTrace();
Binding b = ev.getNewBinding(); System.out.println("--> ADD: Object of type " + b.getClassName() + " added at binding \"" + b.toString() + "\"");
Binding b = ev.getOldBinding(); System.out.println("--> REMOVE: Object of type " + b.getClassName() + " removed from binding \"" + b.toString() + "\"");
Binding bNew = ev.getNewBinding(); Binding bOld = ev.getOldBinding(); System.out.println("--> RENAME: Object of type " + bNew.getClassName() + " renamed from binding \"" + bOld.toString() + "\" to binding \"" + bNew.toString() + "\"");