public void _startUpdate() {
boolean res = true;
try {
XLayerImpl xLayer = (XLayerImpl) tEnv.getObjRelation("Layer");
log.println("Layer called (before): " + xLayer.hasBeenCalled());
oObj.startUpdate();
oObj.addOrReplaceNode("whatever", (short) 0);
oObj.addOrReplaceNodeFromTemplate("Office", (short) 0,
new TemplateIdentifier());
oObj.addOrReplaceProperty("prop", (short) 0,
new Type(java.lang.String.class));
oObj.addOrReplacePropertyWithValue("prop2", (short) 0, "this");
oObj.modifyProperty("ooSetupFactoryIcon", (short) 0, (short) 0,
new Type(java.lang.String.class));
oObj.resetPropertyValue();
oObj.resetPropertyValueForLocale("en-US");
oObj.endProperty();
oObj.modifyProperty("ooSetupFactoryEmptyDocumentURL", (short) 0,
(short) 0, new Type(java.lang.String.class));
oObj.setPropertyValue("newValue");
oObj.setPropertyValueForLocale("newValue-US", "de-DE");
oObj.endProperty();
oObj.removeProperty("ooSetupShowIntro");
oObj.modifyNode("org.openoffice.Setup", (short) 0, (short) 0, true);
oObj.removeNode("whatever");
oObj.resetProperty("prop");
oObj.endNode();
oObj.endNode();
oObj.endNode();
oObj.endUpdate();
log.println("Layer called (after): " + xLayer.hasBeenCalled());
res = xLayer.hasBeenCalled();
} catch (com.sun.star.configuration.backend.MalformedDataException e) {
log.println("Unexpected exception " + e.getMessage());
res = false;
} catch (com.sun.star.lang.IllegalAccessException e) {
log.println("Unexpected exception " + e.getMessage());