* @exception ObjectAlreadyExistsException An object already exists
* at this Uri
*/
public void createObject(Uri uri, ObjectNode object)
throws ServiceAccessException, ObjectAlreadyExistsException {
ObjectNode tempObject = object.cloneObject();
tempObject.validate(uri.toString());
enlist(nodeStore);
try {
nodeStore.createObject(uri, tempObject);
if (useBinding()) {
String uuri = tempObject.getUuri();
if (uuri == null) {
throw new IllegalStateException();
}
object.setUuri(uuri);
} else {
object.setUuri(tempObject.getUri());
}
} catch (ServiceAccessException e) {
delist(nodeStore, false);
throw e;
} catch (ObjectAlreadyExistsException e) {