updateMapProperty(jgdi, obj, (DefaultMapPropertyDescriptor) key, values);
} else if (key instanceof DefaultMapListPropertyDescriptor) {
updateMapListProperty(jgdi, obj, (DefaultMapListPropertyDescriptor) key, values);
//For CONFIGURATION objects
} else if (obj instanceof Configuration && key instanceof String) {
Configuration c = (Configuration) obj;
ConfigurationElement ce = new ConfigurationElementImpl();
ce.setName((String) key);
//TODO LP: Find out expected behaviour! Can values contain list of ConfigElems?
ce.setValue(values.trim());
c.addEntries(ce);
//TODO LP: Need to exit if we get can't resolve hostname. Otherwise we get stacktrace for each element.
//Also if should be reworked to return correct error code (1).
jgdi.updateConfiguration(c);
} else {
new IllegalArgumentException("Unknown descriptor type=\"" + key.getClass().getName() +