textLengthThreshold = SettingsUtil.getIntegerAttribute(element, "text-length-threshold", textLengthThreshold);
Element contentTypes = element.getChild("content-types");
for (Object o : contentTypes.getChildren()) {
Element child = (Element) o;
String name = child.getAttributeValue("name");
TextContentType contentType = getContentType(name);
if (contentType != null) {
boolean enabled = Boolean.parseBoolean(child.getAttributeValue("enabled"));
contentType.setSelected(enabled);
}
}
}