// IMPLEMENTATION OF THE LevelFactory INTERFACE //
//-----------------------------------------------//
public synchronized Level defineLevel(String name, int value) {
Level l = new LevelImpl(name, value);
if (levels == null) {
levels = new HashMap();
}
levels.put(new Integer(value), l);
return l;