public void showContextMenu(final VLayout treeView, final TreeGrid treeGrid,
final ResourceGroupEnhancedTreeNode node) {
if (node.isAutoClusterNode()) {
final ClusterKey clusterKey = (ClusterKey) node.getAttributeAsObject("key");
GWTServiceLookup.getClusterService().createAutoClusterBackingGroup(clusterKey, true,
new AsyncCallback<ResourceGroup>() {
@Override
public void onFailure(Throwable caught) {
CoreGUI.getErrorHandler().handleError(
MSG.view_tree_group_error_updateAutoCluster(clusterKey.getKey()), caught);
}
@Override
public void onSuccess(ResourceGroup result) {
showContextMenu(treeView, treeGrid, node, result);