if ((repoIds != null) && (repoIds.length > 0)) {
try {
RepoManagerLocal manager = LookupUtil.getRepoManagerLocal();
// TODO: mazz - this shouldn't required Permission.MANAGE_INVENTORY
manager.unsubscribeResourceFromRepos(subject, resourceId, repoIds);
FacesContextUtility.addMessage(FacesMessage.SEVERITY_INFO, "Unsubscribed [" + repoIds.length
+ "] repositories from resource");
} catch (Exception e) {
FacesContextUtility.addMessage(FacesMessage.SEVERITY_ERROR,