public void removeActivity(SessionInfo sessionInfo, final NodeId activityId) throws UnsupportedRepositoryOperationException, RepositoryException {
final SessionInfoImpl sInfo = getSessionInfoImpl(sessionInfo);
final VersionManager vMgr = getVersionManager(sInfo);
executeWithLocalEvents(new Callable() {
public Object run() throws RepositoryException {
vMgr.removeActivity(getNode(activityId, sInfo));
return null;
}
}, getSessionInfoImpl(sessionInfo));
}