protected void txFragment(Session session) throws Exception {
Object workspaceFound = session.get(WorkspaceImpl.class, id, lock ? LockMode.UPGRADE : LockMode.NONE);
exists[0] = workspaceFound != null;
}
};
txFragment.execute();
return exists[0];
}
/**
* Adds a workspace to the whole system