dispatcher.execute(new DMRAction(operation), new SimpleCallback<DMRResponse>() {
@Override
public void onSuccess(DMRResponse dmrResponse) {
ModelNode result = dmrResponse.get();
TransactionManager metrics = entityAdapter.fromDMR(result.get(RESULT));
getView().setTxMetric(new Metric(
metrics.getNumTransactions(),
metrics.getNumCommittedTransactions(),
metrics.getNumAbortedTransactions(),
metrics.getNumTimeoutTransactions()
));
getView().setRollbackMetric(new Metric(
metrics.getNumApplicationRollback(),
metrics.getNumResourceRollback()
));
//provideRandomMetrics();