widget.setDataModel(debuggingMapDataModel);
return widget;
} catch (ClassNotFoundException e) {
throw new GUIException("Unknown widget class [" + className + "]");
} catch (NoSuchMethodException e) {
throw new GUIException("Widget constructor not found", e);
} catch (IllegalAccessException e) {
throw new GUIException("Widget constructor could not be called", e);
} catch (InstantiationException e) {
throw new GUIException("Widget is abstract", e);
} catch (InvocationTargetException e) {
throw new GUIException("Widget constructor threw an exception", e);
}
}