Subject subject = EnterpriseFacesContextUtility.getSubject();
String path = "";
if (node.getData() instanceof ClusterKey) {
ClusterManagerLocal clusterManager = LookupUtil.getClusterManager();
ResourceGroup group = clusterManager.createAutoClusterBackingGroup(subject, (ClusterKey) node.getData(),
true);
path = "/rhq/group/inventory/view.xhtml";
path += ("?groupId=" + group.getId() + "&parentGroupId=" + ((ClusterKey) node.getData())