try {
service = getService(wsContext, repositoryId);
ExtensionsData extData = convertExtensionHolder(extension);
service.deleteObject(repositoryId, objectId, allVersions, extData);
setExtensionValues(extData, extension);
} catch (Exception e) {
throw convertException(e);
} finally {