if (cfg == null)
continue;
// Use the default value to retrieve the configurable type
// and the associated textual format.
Class type = cfg.getDefault().getClass();
TextFormat format = TextFormat.getInstance(type);
if (!format.isParsingSupported()) {
LogContext.error("Cannot find suitable TextFormat to parse instances of " + type);
continue;
}
Object newValue = format.parse(Configurable.toCsq(textValue));
Configurable.configure(cfg, newValue);
}
}