HProjectIteration version =
projectIterationDAO.getBySlug("same-project", "same-version");
assert version != null;
for (HDocument doc : version.getDocuments().values()) {
doc.setObsolete(true);
documentDAO.makePersistent(doc);
}
ProjectDAO projectDAO = seam.autowire(ProjectDAO.class);
HProject project = projectDAO.getBySlug("different-project");
assert project != null;