throws GUIException {
try {
if (className.indexOf('.') == -1)
className = WidgetFactory.DEFAULT_PREFIX + className;
Class wClass = Class.forName(className);
Constructor widgetConstructor = null;
Widget widget = null;
if (preset != null)
widgetConstructor = wClass.getConstructor(new Class[] { Widget.class, String.class, String.class });
else
widgetConstructor = wClass.getConstructor(new Class[] { Widget.class, String.class });
if (preset != null)
widget = (Widget) widgetConstructor.newInstance(new Object[] { parentWidget, widgetName, preset });
else
widget = (Widget) widgetConstructor.newInstance(new Object[] { parentWidget, widgetName });
widget.setDataModel(debuggingMapDataModel);
return widget;
} catch (ClassNotFoundException e) {