child.remove();
}
// then remove the workspace itself and unlink the system content. This method will create & save the session cache
// therefore, we don't need to call removeSession.save() from here.
if (!repositoryCache.destroyWorkspace(name, (WritableSessionCache)removeSession.cache())) {
throw new NoSuchWorkspaceException(JcrI18n.workspaceNotFound.text(name, getName()));
}
} catch (UnsupportedOperationException e) {
throw new UnsupportedRepositoryOperationException(e.getMessage());
} finally {