@SuppressWarnings("unused")
static double getMeasuredResourceValue(final String cName,
final ComputeResourceUtilization cru) {
double value = 0;
if (cName.equals(Constants.UTIL_PERCENT_CPU)) {
CpuUtilization cpu = cru.getCpuUtilization();
value = (cpu == null ? 0 : cpu.getValue());
} else if (cName.equals(Constants.UTIL_PERCENT_MEMORY)) {
SystemMemoryUtilization mem = cru.getSystemMemoryUtilization();
value = (mem == null ? 0 : mem.getValue());