if(ModelAdapter.wasSuccess(response))
{
// memory
ModelNode memory = steps.get("step-1").get(RESULT);
HeapMetric heap = heapMetricAdapter.fromDMR(memory.get("heap-memory-usage"));
HeapMetric nonHeap = heapMetricAdapter.fromDMR(memory.get("non-heap-memory-usage"));
metric.setHeap(heap);
metric.setNonHeap(nonHeap);