public DefaultNodeWrapper(String nodeClassName) {
try {
Class<?> nodeClass = Class.forName(nodeClassName);
Node node = (Node) nodeClass.newInstance();
if (node instanceof NodeExtension) {
NodeExtension nodeExtension = (NodeExtension) node;
node.setName(nodeExtension.getDefaultName());
}
setNode(node);
} catch (Throwable t) {
DroolsEclipsePlugin.log(t);
}