public GUIComponent createBasicComponent(AttributeDefinition attr) {
GUIComponent component = null;
switch (attr.getType()) {
case (AttributeDefinition.BOOLEAN):
component = new BooleanComponent();
break;
case (AttributeDefinition.STRING):
String[] defaultValue = attr.getDefaultValue();
if (defaultValue != null && defaultValue.length == 1
&& defaultValue[0] != null) {