}
public static void setWidgetTypes(List<WidgetTypeConfig> types) {
+ WidgetType.clearElements();
for (WidgetTypeConfig type : types) {
if (type.type == null || type.name == null) {
throw new IllegalArgumentException("Incomplete widget type specified: " + type);