final String className = element.getAttribute("class");
if (className != null) {
try {
final Class<?> cls =
Thread.currentThread().getContextClassLoader().loadClass(className);
final NetworkLayer layer = (NetworkLayer) cls.newInstance();
layers.put(layer.getProtocolID(), layer);
} catch (ClassNotFoundException ex) {
log.error("Cannot find networklayer class " + className);
} catch (IllegalAccessException ex) {
log.error("Cannot access networklayer class " + className);
} catch (InstantiationException ex) {