log.debug("No w:settings/w:compat element; creating..");
}
compat = Context.getWmlObjectFactory().createCTCompat();
this.getContents().setCompat(compat);
CTCompatSetting theSetting = null;
for (CTCompatSetting setting : compat.getCompatSetting() ) {
if (setting.getUri().equals("http://schemas.microsoft.com/office/word")
&& setting.getName().equals(name)) {
theSetting = setting;
break;
}
}
if (theSetting==null) {
theSetting = Context.getWmlObjectFactory().createCTCompatSetting();
theSetting.setUri("http://schemas.microsoft.com/office/word");
theSetting.setName(name);
compat.getCompatSetting().add(theSetting);
}
theSetting.setVal(val);
}