if (this.repo == null) {
Subject subject = EnterpriseFacesContextUtility.getSubject();
Integer id = FacesContextUtility.getRequiredRequestParameter("id", Integer.class);
RepoManagerLocal manager = LookupUtil.getRepoManagerLocal();
this.repo = manager.getRepo(subject, id);
this.repo.setSyncStatus(manager.calculateSyncStatus(subject, id));
if (repo.getOwner() == null) {
repo.setOwner(new Subject());
}
}
}