PropertySimple property = portletConfig.getSimple(Constant.RESULT_COUNT);
String currentSetting = property.getStringValue();
final int resultCountFinal = (currentSetting.trim().isEmpty() || currentSetting.equalsIgnoreCase("5")) ? 5: Integer.valueOf(currentSetting);
//locate resourceGroupRef
ResourceGroupCriteria criteria = new ResourceGroupCriteria();
criteria.addFilterId(groupId);
criteria.fetchConfigurationUpdates(false);
criteria.fetchExplicitResources(false);
criteria.fetchGroupDefinition(false);
criteria.fetchOperationHistories(false);
// for autoclusters and autogroups we need to add more criteria
final boolean isAutoCluster = isAutoCluster();
final boolean isAutoGroup = isAutoGroup();
if (isAutoCluster) {
criteria.addFilterVisible(false);
} else if (isAutoGroup) {
criteria.addFilterVisible(false);
criteria.addFilterPrivate(true);
}
//locate the resource group
GWTServiceLookup.getResourceGroupService().findResourceGroupCompositesByCriteria(criteria,
new AsyncCallback<PageList<ResourceGroupComposite>>() {