* @param mv - the CompositeValue meta value
* @return the corresponding MemoryUsage instance
*/
public static MemoryUsage unwrapMemoryUsage(CompositeValue mv)
{
SimpleValue committedSV = SimpleValue.class.cast(mv.get("committed"));
SimpleValue initSV = SimpleValue.class.cast(mv.get("init"));
SimpleValue maxSV = SimpleValue.class.cast(mv.get("max"));
SimpleValue usedSV = SimpleValue.class.cast(mv.get("used"));
long committed = (Long) committedSV.getValue();
long init = (Long) initSV.getValue();
long max = (Long) maxSV.getValue();
long used = (Long) usedSV.getValue();
MemoryUsage mu = new MemoryUsage(init, used, committed, max);
return mu;
}