protected Plugin parsePlugin(Element pluginElement) {
String className = subst(pluginElement.getAttribute(CLASS_ATTR));
LogLog.debug("Creating plugin: [" + className + ']');
try {
Plugin plugin = (Plugin) Loader.loadClass(className).newInstance();
PropertySetter propSetter = new PropertySetter(plugin);
plugin.setName(subst(pluginElement.getAttribute(NAME_ATTR)));
NodeList children = pluginElement.getChildNodes();
final int length = children.getLength();
for (int loop = 0; loop < length; loop++) {