gedi-geode-office/src/main/java/gedi/solutions/geode/office/StatsUtil.java
public static String getAppName(ResourceInst[] resources)
	{
		if(resources == null || resources.length == 0)
			return null;
		
		ResourceType rt = null;
		for (ResourceInst resourceInst : resources)
		{
			if(resourceInst == null)
				continue;
			
			rt = resourceInst.getType();
			if(rt == null)
				continue;
			
			if(!"CacheServerStats".equals(rt.getName()))
				continue;
			
			return resourceInst.getName();
		}
		return null;
	}
public static String getAppName(ResourceInst[] resources)
	{
		if(resources == null || resources.length == 0)
			return null;
		
		ResourceType rt = null;
		for (ResourceInst resourceInst : resources)
		{
			if(resourceInst == null)
				continue;
			
			rt = resourceInst.getType();
			if(rt == null)
				continue;
			
			if(!"CacheServerStats".equals(rt.getName()))
				continue;
			
			return resourceInst.getName();
		}
		return null;
	}
Current supports get cache server name
Determine the logic name of app
@param resources the resource used to determine namne
@return the application name (ex: datanode or locator name)